Fix Loader Redstone #89
@ -50,20 +50,15 @@ class AutoLoader_15 {
|
|||||||
relative = block.getRelative(swtch.getFacing());
|
relative = block.getRelative(swtch.getFacing());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
relative.getState().update(true);
|
updateBlock(relative);
|
||||||
updateBlock(relative.getLocation());
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void updateBlock(Location location) {
|
static void updateBlock(Block block) {
|
||||||
for (int[] offset : offsets) {
|
BlockData data = block.getBlockData();
|
||||||
location.add(offset[0], offset[1], offset[2]);
|
block.setType(Material.BARRIER, true);
|
||||||
if (!location.getBlock().getType().isOccluding()) continue;
|
block.setBlockData(data, true);
|
||||||
BlockData data = location.getBlock().getBlockData();
|
|
||||||
location.getBlock().setType(Material.BARRIER, true);
|
|
||||||
location.getBlock().setBlockData(data, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void onPlayerInteract(IAutoLoader loader, PlayerInteractEvent event) {
|
static void onPlayerInteract(IAutoLoader loader, PlayerInteractEvent event) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren