Remove Weird Global Item Givers / Fixes Item Givers

This commit is contained in:
Kam committed 2024-03-05 13:51:03 -05:00
1 parent 2dfb383245
commit 6f6d4c041b
6 files changed
+68 -109

No files matched your search

@@ -99,7 +99,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
public long totalTicksAlive = 0;
private int taskCount = 1;
public int lastInteract = 0;
public int itemGiverId = 0;
public boolean isDrawn = false;
public Faction faction; //should only be used server side
@@ -1020,11 +1019,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
script.readFromNBT(compound);
script.readEventsFromNBT(compound);
timers.readFromNBT(compound);
if (compound.hasKey("ItemGiverId")) {
itemGiverId = compound.getInteger("ItemGiverId");
} else {
itemGiverId = -1;
}
advanced.readToNBT(compound);
if (advanced.role != EnumRoleType.None && roleInterface != null)
roleInterface.readFromNBT(compound);