Hotfix SmartPlaceListener
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
2d97a425e9
Commit
83acb13f73
@ -64,6 +64,9 @@ public class SmartPlaceListener implements Listener {
|
|||||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) return;
|
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) return;
|
||||||
if (event.getPlayer().isSneaking()) {
|
if (event.getPlayer().isSneaking()) {
|
||||||
if (event.getClickedBlock().getType() == Material.REPEATER) {
|
if (event.getClickedBlock().getType() == Material.REPEATER) {
|
||||||
|
if (event.getItem() != null && event.getMaterial() != Material.REPEATER) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Repeater repeater = (Repeater) event.getClickedBlock().getBlockData();
|
Repeater repeater = (Repeater) event.getClickedBlock().getBlockData();
|
||||||
int i = repeater.getDelay() - 1;
|
int i = repeater.getDelay() - 1;
|
||||||
if (i <= 0) i += 4;
|
if (i <= 0) i += 4;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren