fixed selectivePrimedTNT selecting wrong block type

This commit is contained in:
Jenny committed 2025-01-25 10:51:52 +01:00
1 parent db66c68d4c
commit 992e1ca255
2 files changed
+2 -2

No files matched your search

@@ -42,6 +42,6 @@ public class selectivePrimedTNT extends basePrimedTNT {
}
public String getBlock() {
return level().getBlockState(new BlockPos((int) Math.round(getX()), (int) Math.round(getY() - 1), (int) Math.round(getZ()))).getBlock().toString();
return level().getBlockState(new BlockPos((int) getX(), (int) getY() - 1, (int) getZ())).getBlock().toString();
}
}