SteamWar/BauSystem
Archiviert
13
0

Fix Signedit #188

Manuell gemergt
YoyoNow hat 3 Commits von edit-signs nach master 2021-02-06 15:46:37 +01:00 zusammengeführt
Nur Änderungen aus Commit fee6807d3b werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -116,9 +116,9 @@ public class RegionListener implements Listener {
public void editSign(PlayerInteractEvent event) { public void editSign(PlayerInteractEvent event) {
if(event.getAction() != Action.RIGHT_CLICK_BLOCK || if(event.getAction() != Action.RIGHT_CLICK_BLOCK ||
!event.getClickedBlock().getType().name().contains("SIGN") || !event.getClickedBlock().getType().name().contains("SIGN") ||
!event.getPlayer().isSneaking()) !event.getPlayer().isSneaking() ||
return; event.getItem() != null ||
if(event.getItem() != null || event.getItem().getType() != Material.AIR) event.getItem().getType() != Material.AIR)
return; return;
Player player = event.getPlayer(); Player player = event.getPlayer();