Hot-fix for IntellectualSites#3179 (#3188)

Authored by @SirYwell ty!
This commit is contained in:
Aurélien 2021-07-28 12:42:20 +02:00 committed by GitHub
parent 9d396fa91f
commit 6ad51bba65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1439,6 +1439,9 @@ public class PlayerEventListener extends PlotListener implements Listener {
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
if (event.getRightClicked().getType() == EntityType.UNKNOWN) {
return;
}
Location location = BukkitUtil.adapt(event.getRightClicked().getLocation()); Location location = BukkitUtil.adapt(event.getRightClicked().getLocation());
PlotArea area = location.getPlotArea(); PlotArea area = location.getPlotArea();
if (area == null) { if (area == null) {