mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 20:25:13 +00:00
Remove Weird Global Item Givers / Fixes Item Givers
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user