From 3bb40a8fff4d5bf209c9b2fdcf8f462a9f1e7ee8 Mon Sep 17 00:00:00 2001 From: Traks Date: Tue, 17 Dec 2019 21:04:44 +0100 Subject: [PATCH] Fix that players cannot place hanging entities --- .../plotsquared/bukkit/listeners/PlayerEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/PlayerEvents.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/PlayerEvents.java index 4af11f4d6..740cb8155 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/PlayerEvents.java @@ -2357,7 +2357,7 @@ import java.util.regex.Pattern; return; } Player p = event.getPlayer(); - if (p != null) { + if (p == null) { PlotSquared.debug("PlotSquared does not support HangingPlaceEvent for non-players."); event.setCancelled(true); return;