Fixed a potential NPE

This commit is contained in:
MattBDev 2019-08-06 21:44:39 -04:00
parent e6a7f4e5a7
commit f3aa9c43ef

View File

@ -29,6 +29,9 @@ public class WESubscriber {
return;
}
World worldObj = event.getWorld();
if (worldObj == null) {
return;
}
String world = worldObj.getName();
Actor actor = event.getActor();
if (actor != null && actor.isPlayer()) {