mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +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;
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user