ZNickq/MoreMaterials — Issue #25: Code optimization
Author: nathan818
Created: 2012-02-18 19:21:39+00:00
State: open

Just a tip level "optimization":
### SMListener.java
SpoutBlock block = (SpoutBlock) player.getWorld().getBlockAt(
player.getLocation().getBlockX(),
player.getLocation().getBlockY() - 1,
player.getLocation().getBlockZ());

-->

SpoutBlock block = (SpoutBlock)player.getWorld().getBlockAt(player.getLocation().add(0,-1,0));

=D