Fix Clone Controller Set

This commit is contained in:
Kam committed 2024-03-28 01:13:15 -04:00
1 parent 64a472ddda
commit fc5ee18d58
1 file changed
+4 -5
@@ -341,12 +341,11 @@ public class ServerCloneController implements ICloneHandler {
public void set(int tab, String name, IEntity entity) {
NBTTagCompound compound = new NBTTagCompound();
if (!entity.getMCEntity().isEntityAlive()) {
if (!entity.getMCEntity().writeMountToNBT(compound))
throw new CustomNPCsException("Cannot save dead entities", new Object[0]);
} else {
this.cleanTags(compound);
this.saveClone(tab, name, compound);
}
this.cleanTags(compound);
this.saveClone(tab, name, compound);
}
public void remove(int tab, String name) {