mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 18:29:05 +00:00
Fixed some scripted item events, and fixed positioning of scripted items.
This commit is contained in:
1 parent
747730face
commit
11cc46b48f
20 files changed
+231
-146
No files matched your search
@@ -207,7 +207,7 @@ public class ServerCloneController implements ICloneHandler {
|
||||
throw new CustomNPCsException("Unknown clone tab:" + tab + " name:" + name, new Object[0]);
|
||||
} else {
|
||||
Entity entity = NoppesUtilServer.spawnClone(compound, (int)x, (int)y, (int)z, world.getMCWorld());
|
||||
return entity == null ? null : NpcAPI.Instance().getIEntity(entity);
|
||||
return entity == null ? null : ScriptController.Instance.getScriptForEntity(entity);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,7 +218,7 @@ public class ServerCloneController implements ICloneHandler {
|
||||
} else {
|
||||
Instance.cleanTags(compound);
|
||||
Entity entity = EntityList.createEntityFromNBT(compound, world.getMCWorld());
|
||||
return entity == null ? null : NpcAPI.Instance().getIEntity(entity);
|
||||
return entity == null ? null : ScriptController.Instance.getScriptForEntity(entity);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user