Perf: Block Spread

This commit is contained in:
ryanhamshire 2014-11-11 21:53:13 -08:00
parent 20e7ae00e5
commit 5994c913f6

View File

@ -562,7 +562,7 @@ public class BlockEventHandler implements Listener
//if the source of the spread is not fire on netherrack, put out that source fire to save cpu cycles //if the source of the spread is not fire on netherrack, put out that source fire to save cpu cycles
Block source = spreadEvent.getSource(); Block source = spreadEvent.getSource();
if(source.getType() == Material.FIRE && source.getRelative(BlockFace.DOWN).getType() != Material.NETHERRACK) if(source.getRelative(BlockFace.DOWN).getType() != Material.NETHERRACK)
{ {
source.setType(Material.AIR); source.setType(Material.AIR);
} }