From 39c40bfebbd1a2e9e6e6fefd068ca4d6dcd3ca2e Mon Sep 17 00:00:00 2001 From: Gitoido Date: Mon, 28 Sep 2026 22:53:46 +0300 Subject: [PATCH] fix: drop correct pokeball stack on wall hit/drop --- .../mod/common/entity/pokeball/EmptyPokeBallEntity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokeball/EmptyPokeBallEntity.kt b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokeball/EmptyPokeBallEntity.kt index 9d0f618bd2..191a7db4e7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokeball/EmptyPokeBallEntity.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/entity/pokeball/EmptyPokeBallEntity.kt @@ -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 }