Merge pull request #2634 from traksag/hanging-fix

Fix that players cannot place hanging entities
This commit is contained in:
Matt 2019-12-18 12:37:47 -05:00 committed by GitHub
commit 7103969bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;