--- a/net/minecraft/block/SpongeBlock.java
+++ b/net/minecraft/block/SpongeBlock.java
@@ -64,7 +64,7 @@
                      queue.add(new Tuple<>(blockpos1, j + 1));
                   }
                } else if (material == Material.field_203243_f || material == Material.field_204868_h) {
-                  TileEntity tileentity = blockstate.func_177230_c().func_235695_q_() ? p_176312_1_.func_175625_s(blockpos1) : null;
+                  TileEntity tileentity = blockstate.hasTileEntity() ? p_176312_1_.func_175625_s(blockpos1) : null;
                   func_220059_a(blockstate, p_176312_1_, blockpos1, tileentity);
                   p_176312_1_.func_180501_a(blockpos1, Blocks.field_150350_a.func_176223_P(), 3);
                   ++i;
