Use the level and pos variable

This commit is contained in:
Mrbysco 2024-03-09 15:44:35 +01:00
parent 73f7af4dbf
commit 323c07568d

View file

@ -174,7 +174,7 @@ public class TileEntityPoweredFurnace extends TileEntityInventoryBase implements
}
if (changeTo != current) {
tile.level.setBlock(tile.worldPosition, state.setValue(BlockStateProperties.LIT, changeTo), Block.UPDATE_ALL);
level.setBlock(pos, state.setValue(BlockStateProperties.LIT, changeTo), Block.UPDATE_ALL);
}
tile.lastSmelted = smelted;