mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 16:55:12 +00:00
New Scripting Additions
Script Item - Copy() - getMaxItemDamage Script World - Broadcast ServerCloneController - has
This commit is contained in:
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]);
|
||||
|
||||
Reference in new issue
Block a user