Skip to content

Commit

Permalink
fix assignment trait load bork
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 23, 2021
1 parent 7179849 commit bd83db6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -51,7 +51,7 @@ public AssignmentTrait() {
*/
@Override
public void load(DataKey key) {
if (hasAssignment()) {
if (!hasAssignment()) {
Debug.echoError("Missing assignment '" + assignment + "' for NPC '" + npc.getName() + "/" + npc.getId() + "! Perhaps the script has been removed?");
}
npc.getOrAddTrait(ConstantsTrait.class).rebuildAssignmentConstants();
Expand Down

0 comments on commit bd83db6

Please sign in to comment.