SteamWar/BauSystem2.0
Archiviert
12
0

Fix ObserverTracerListener

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-06-20 09:02:49 +02:00
Ursprung 3a437737d2
Commit 2a4f980813

Datei anzeigen

@ -47,6 +47,9 @@ public class ObserverTracerListener implements Listener {
@EventHandler @EventHandler
public void onPlayerInteract(PlayerInteractEvent event) { public void onPlayerInteract(PlayerInteractEvent event) {
if (event.getMaterial() == Material.OBSERVER) {
return;
}
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) { if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
return; return;
} }