Changes up until now.

This commit is contained in:
nossr50 2011-02-17 16:01:32 -08:00
parent 43fe6f956f
commit 33012856d4

View File

@ -19,7 +19,13 @@ public class mcBlockListener extends BlockListener {
this.plugin = plugin;
}
public void onBlockPlace(BlockPlaceEvent event) {
Block block = event.getBlock();
Block block;
if (event.getBlockReplacedState().getTypeId() == 78) {
block = event.getBlockAgainst();
}
else {
block = event.getBlock();
}
int x = block.getX();
int y = block.getY();
int z = block.getZ();