Skip to content

Commit 7d399dc

Browse files
committed
Initial changes for 3rd-party API
1 parent 0d28a74 commit 7d399dc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CreeperHeal2 (v1.4.0) (1.13-1.17)
1+
# CreeperHeal2 (v1.4.0) (1.13-1.18)
22

33
[Spigot Plugin Page](https://www.spigotmc.org/resources/creeperheal2.80585/)
44

src/main/kotlin/net/pdevita/creeperheal2/CreeperHeal2.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ class CreeperHeal2 : JavaPlugin() {
4040
server.pluginManager.registerEvents(Explode(this), this)
4141
}
4242

43-
fun createNewExplosion(blockList: List<Block>) {
43+
fun createNewExplosion(blockList: List<Block>): Explosion? {
4444
if (blockList.isEmpty()) {
4545
// debugLogger("Explosion with no blocks")
46-
return
46+
return null
4747
}
4848
// explosions.add(Explosion(this, blockList))
49-
manager.add(Explosion(this, blockList))
49+
val newExplosion = Explosion(this, blockList)
50+
manager.add(newExplosion)
51+
return newExplosion
5052
}
5153

5254
fun removeExplosion(explosion: Explosion) {

0 commit comments

Comments
 (0)