mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Changes up until now.
This commit is contained in:
parent
43fe6f956f
commit
33012856d4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user