From be34bc4c74b46feab08e9482a3e544ca07aab43e Mon Sep 17 00:00:00 2001 From: notepadccino <21462698-notepadccino@users.noreply.gitlab.com> Date: Tue, 28 May 2024 19:12:21 +0200 Subject: [PATCH] Fixes #878 --- .../com/cobblemon/mod/common/block/chest/GildedChestBlock.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/chest/GildedChestBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/chest/GildedChestBlock.kt index dae1b52c8f..c3390f3b22 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/chest/GildedChestBlock.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/chest/GildedChestBlock.kt @@ -131,7 +131,6 @@ class GildedChestBlock(settings: Settings, val type: Type = Type.RED) : BlockWit if (isFake() && (player is ServerPlayerEntity)) { spawnPokemon(world, pos, state, player) } - world.setBlockState(pos, if (state.fluidState.isOf(Fluids.WATER)) Blocks.WATER.defaultState else Blocks.AIR.defaultState) val bEntity = world.getBlockEntity(pos) as? GildedChestBlockEntity bEntity?.markRemoved() } else super.onBreak(world, pos, state, player)