Fix Entity Name Null Bug

This commit is contained in:
Kam committed 2024-09-22 15:25:02 -04:00
1 parent 4cb05e5a6c
commit c2bde86aa2
1 file changed
+2 -2
@@ -375,9 +375,9 @@ public class ServerEventsHandler {
if (quest.targetType > 0 && !(entityType.isInstance(entity)))
continue;
if (quest.targets.containsKey(entity.getCommandSenderName()))
if (entity.getCommandSenderName() != null && quest.targets.containsKey(entity.getCommandSenderName()))
name = entity.getCommandSenderName();
else if (!quest.targets.containsKey(name))
else if (entity.getCommandSenderName() == null || !quest.targets.containsKey(name))
continue;
checkCompletion = true;