mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 14:39:43 +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
@@ -32,7 +32,7 @@ public class PlayerItemGiverData implements IPlayerItemGiverData {
|
||||
public boolean hasInteractedBefore(JobItemGiver jobItemGiver) {
|
||||
return itemgivers.containsKey(jobItemGiver.itemGiverId);
|
||||
}
|
||||
|
||||
|
||||
public long getTime(JobItemGiver jobItemGiver){
|
||||
return itemgivers.get(jobItemGiver.itemGiverId);
|
||||
}
|
||||
@@ -59,17 +59,4 @@ public class PlayerItemGiverData implements IPlayerItemGiverData {
|
||||
public boolean hasInteractedBefore(IJobItemGiver jobItemGiver) {
|
||||
return itemgivers.containsKey(((JobItemGiver) jobItemGiver).itemGiverId);
|
||||
}
|
||||
|
||||
public IJobItemGiver[] getItemGivers() {
|
||||
ArrayList<IJobItemGiver> list = new ArrayList<>();
|
||||
for (JobItemGiver jobItemGiver : GlobalDataController.Instance.itemGivers.values()) {
|
||||
if (jobItemGiver.npc != null) {
|
||||
list.add(new ScriptJobItemGiver(jobItemGiver.npc));
|
||||
} else {
|
||||
list.add(new ScriptJobItemGiver(jobItemGiver));
|
||||
}
|
||||
}
|
||||
|
||||
return list.toArray(new IJobItemGiver[0]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user