potential NPE issue

This commit is contained in:
gnembon committed 2020-11-28 22:23:57 -04:00
1 parent bab7037b80
commit 076ad62fad
1 file changed
+1
@@ -439,6 +439,7 @@ public class Auxiliary {
if (lv.size() == 2)
{
ServerPlayerEntity player = EntityValue.getPlayerByValue(s.getMinecraftServer(), res);
if (player == null) return LazyValue.NULL;
s = player.getCommandSource();
res = lv.get(1).evalValue(c);
}