mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Fix Entity Name Null Bug
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user