SteamWar/BauSystem
Archiviert
13
0

Fixing BlockData not in 1.12 #108

Manuell gemergt
Lixfel hat 1 Commits von fixing-yoyo nach master 2020-10-29 08:35:11 +01:00 zusammengeführt

Datei anzeigen

@ -158,7 +158,7 @@ public class AutoLoader extends IAutoLoader implements Listener {
public void onPlayerInteract(PlayerInteractEvent event){ public void onPlayerInteract(PlayerInteractEvent event){
if (event.getAction() != Action.RIGHT_CLICK_BLOCK && event.getAction() != Action.PHYSICAL) if (event.getAction() != Action.RIGHT_CLICK_BLOCK && event.getAction() != Action.PHYSICAL)
return; return;
if (event.getClickedBlock().getBlockData().getMaterial() == Material.OBSERVER) if (event.getClickedBlock().getType() == Material.OBSERVER)
return; return;
if (event.getPlayer().isSneaking()) if (event.getPlayer().isSneaking())
return; return;