File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/main/kotlin/net/pdevita/creeperheal2 Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- # CreeperHeal2 (v1.4.0) (1.13-1.17 )
1
+ # CreeperHeal2 (v1.4.0) (1.13-1.18 )
2
2
3
3
[ Spigot Plugin Page] ( https://www.spigotmc.org/resources/creeperheal2.80585/ )
4
4
Original file line number Diff line number Diff line change @@ -40,13 +40,15 @@ class CreeperHeal2 : JavaPlugin() {
40
40
server.pluginManager.registerEvents(Explode (this ), this )
41
41
}
42
42
43
- fun createNewExplosion (blockList : List <Block >) {
43
+ fun createNewExplosion (blockList : List <Block >): Explosion ? {
44
44
if (blockList.isEmpty()) {
45
45
// debugLogger("Explosion with no blocks")
46
- return
46
+ return null
47
47
}
48
48
// explosions.add(Explosion(this, blockList))
49
- manager.add(Explosion (this , blockList))
49
+ val newExplosion = Explosion (this , blockList)
50
+ manager.add(newExplosion)
51
+ return newExplosion
50
52
}
51
53
52
54
fun removeExplosion (explosion : Explosion ) {
You can’t perform that action at this time.
0 commit comments