mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
Used interfaces in implementations instead of the real classes for most scripted classes.
This commit is contained in:
1 parent
6896cec417
commit
cf33b90b26
63 files changed
+466
-551
No files matched your search
@@ -80,6 +80,7 @@ import noppes.npcs.roles.JobInterface;
|
||||
import noppes.npcs.roles.RoleCompanion;
|
||||
import noppes.npcs.roles.RoleFollower;
|
||||
import noppes.npcs.roles.RoleInterface;
|
||||
import noppes.npcs.scripted.NpcAPI;
|
||||
import noppes.npcs.scripted.entity.ScriptNpc;
|
||||
import noppes.npcs.scripted.event.ScriptEventAttack;
|
||||
import noppes.npcs.scripted.event.ScriptEventDamaged;
|
||||
@@ -165,7 +166,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
this.updateTasks();
|
||||
|
||||
if (!this.isRemote()) {
|
||||
this.wrappedNPC = new ScriptNpc(this);
|
||||
this.wrappedNPC = new ScriptNpc<>(this);
|
||||
}
|
||||
}
|
||||
catch(Exception e){
|
||||
|
||||
Reference in new issue
Block a user