mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-11-17 05:38:53 -05:00
fix: drop correct pokeball stack on wall hit/drop
This commit is contained in:
1 parent
beed33ccb0
commit
39c40bfebb
1 file changed
+2
-2
+2
-2
@@ -198,7 +198,7 @@ class EmptyPokeBallEntity : ThrowableItemProjectile, PosableEntity, WaterDragMod
|
||||
discard()
|
||||
val player = this.owner as? ServerPlayer
|
||||
if (player?.isCreative == false) {
|
||||
spawnAtLocation(defaultItem)
|
||||
spawnAtLocation(pokeBall.stack())
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -295,7 +295,7 @@ class EmptyPokeBallEntity : ThrowableItemProjectile, PosableEntity, WaterDragMod
|
||||
val owner = owner
|
||||
discard()
|
||||
val player = owner?.takeIf { it is ServerPlayer } as? ServerPlayer
|
||||
if (player?.isCreative != true) spawnAtLocation(defaultItem)
|
||||
if (player?.isCreative != true) spawnAtLocation(pokeBall.stack())
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user