1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-19 15:31:25 +02:00

Changes up until now.

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

@ -19,7 +19,13 @@ public class mcBlockListener extends BlockListener {
this.plugin = plugin; this.plugin = plugin;
} }
public void onBlockPlace(BlockPlaceEvent event) { 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 x = block.getX();
int y = block.getY(); int y = block.getY();
int z = block.getZ(); int z = block.getZ();