Skip to content

Commit f634670

Browse files
committed
fix: 🐛 Fix Glacial staff to not try to melt down ice in unloaded chunks
1 parent 2a26fe4 commit f634670

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/reliquary/items/GlacialStaffItem.java

+4
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ private void meltBlocks(ItemStack staff, Level world, Player player) {
101101
if (!world.isClientSide) {
102102
BlockPos playerPos = player.blockPosition();
103103
for (BlockPos pos : getBlockLocations(staff)) {
104+
if (!world.isLoaded(pos)) {
105+
continue;
106+
}
107+
104108
int xOff = Math.abs(playerPos.getX() - pos.getX());
105109
int yOff = Math.abs(playerPos.getY() - pos.getY());
106110
int zOff = Math.abs(playerPos.getZ() - pos.getZ());

0 commit comments

Comments
 (0)