Hotfix SmartPlaceListener
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
688270d311
Commit
247907e523
@ -75,12 +75,15 @@ public class SmartPlaceListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.getClickedBlock().getType() == event.getMaterial()) {
|
||||||
switch (event.getMaterial()) {
|
switch (event.getMaterial()) {
|
||||||
case REPEATER:
|
case HOPPER:
|
||||||
case COMPARATOR:
|
case DISPENSER:
|
||||||
return;
|
case DROPPER:
|
||||||
default:
|
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
event.setUseInteractedBlock(Event.Result.DENY);
|
event.setUseInteractedBlock(Event.Result.DENY);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren