SteamWar/BauSystem
Archiviert
13
0

Merge pull request 'Fix Autoloader load at Observer' (#107) from AutoLoaderFix into master

Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
YoyoNow 2020-10-24 17:47:14 +02:00
Commit 6600731321

Datei anzeigen

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