Spread Workload of Barrelchecks to multiple Ticks

This commit is contained in:
Sn0wStorm
2014-09-04 21:54:25 +02:00
parent dac2bf90af
commit 703edfc8b8
5 changed files with 60 additions and 20 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ public class BCauldron {
public void onUpdate() {
// Check if fire still alive
if (block.getRelative(BlockFace.DOWN).getType() == Material.FIRE || block.getRelative(BlockFace.DOWN).getType() == Material.STATIONARY_LAVA
if (!block.getChunk().isLoaded() || block.getRelative(BlockFace.DOWN).getType() == Material.FIRE || block.getRelative(BlockFace.DOWN).getType() == Material.STATIONARY_LAVA
|| block.getRelative(BlockFace.DOWN).getType() == Material.LAVA) {
// add a minute to cooking time
state++;