New Scripting Additions

Script Item
- Copy()
- getMaxItemDamage

Script World
- Broadcast

ServerCloneController
- has
This commit is contained in:
Kam committed 2024-03-28 01:34:12 -04:00
1 parent 96560034cc
commit b4434987be
4 files changed
+44 -10

No files matched your search

@@ -339,7 +339,13 @@ public class ServerCloneController implements ICloneHandler {
}
}
public void set(int tab, String name, IEntity entity) {
public boolean has(int tab, String name) {
NBTTagCompound compound = this.getCloneData((ICommandSender)null, name, tab);
return compound != null;
}
public void set(int tab, String name, IEntity entity) {
NBTTagCompound compound = new NBTTagCompound();
if (!entity.getMCEntity().writeMountToNBT(compound))
throw new CustomNPCsException("Cannot save dead entities", new Object[0]);