fix: drop correct pokeball stack on wall hit/drop

This commit is contained in:
Gitoido authored and Gitoido Okaski committed 2026-10-28 12:27:24 +03:00
1 parent beed33ccb0
commit 39c40bfebb
1 file changed
+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
}