mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 19:55:06 +00:00
Added handler support to NPC API.
This commit is contained in:
1 parent
69f96519dc
commit
d50f51e208
40 files changed
+1471
-56
No files matched your search
@@ -1422,10 +1422,10 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
return fac;
|
||||
}
|
||||
else{
|
||||
Faction fac = FactionController.getInstance().getFaction(faction);
|
||||
Faction fac = FactionController.getInstance().get(faction);
|
||||
if (fac == null) {
|
||||
faction = FactionController.getInstance().getFirstFactionId();
|
||||
fac = FactionController.getInstance().getFaction(faction);
|
||||
fac = FactionController.getInstance().get(faction);
|
||||
}
|
||||
return fac;
|
||||
}
|
||||
@@ -1436,7 +1436,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
public void setFaction(int integer) {
|
||||
if(integer < 0|| isRemote())
|
||||
return;
|
||||
Faction faction = FactionController.getInstance().getFaction(integer);
|
||||
Faction faction = FactionController.getInstance().get(integer);
|
||||
if(faction == null)
|
||||
return;
|
||||
String str = faction.id + ":" + faction.color + ":" + faction.name;
|
||||
|
||||
Reference in new issue
Block a user