mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-20 15:11:29 +01:00
Fixed a possible nullability bug in EnterExitListener
This commit is contained in:
parent
c307f9b844
commit
ffa873be68
@ -37,7 +37,8 @@ public class EnterExitListener extends FlagListener {
|
||||
|
||||
private void handleEnterExit(@NonNull User user, @NonNull Location from, @NonNull Location to) {
|
||||
// Only process if there is a change in X or Z coords
|
||||
if (from.getWorld().equals(to.getWorld()) && from.toVector().multiply(XZ).equals(to.toVector().multiply(XZ))) {
|
||||
if (from.getWorld() != null && from.getWorld().equals(to.getWorld())
|
||||
&& from.toVector().multiply(XZ).equals(to.toVector().multiply(XZ))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user