Perf: Block Spread
This commit is contained in:
parent
20e7ae00e5
commit
5994c913f6
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user