mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-29 12:09:07 +00:00
Fixes
- Fixed NPE occuring when Jigsaw fails to find Object in pool. Now just produces a warning in the console like it should - Fixed pointless copies of lists being created within PlannedStructure - Fixed mobs spawning within other blocks and suffocating on spawn - Fixed creating a jigsaw with a non existent object causing jigsaw commands to lock up (#377) - Fixed editing a non existent jigsaw just not doing anything
This commit is contained in:
@@ -53,8 +53,11 @@ public class CommandIrisJigsawEdit extends MortarCommand
|
||||
{
|
||||
File dest = piece.getLoadFile();
|
||||
new JigsawEditor(sender.player(), piece, IrisDataManager.loadAnyObject(piece.getObject()), dest);
|
||||
return true;
|
||||
}
|
||||
|
||||
sender.sendMessage("Failed to find existing jigsaw piece: " + args[0]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,12 @@ public class CommandIrisJigsawNew extends MortarCommand
|
||||
}
|
||||
|
||||
IrisObject object = IrisDataManager.loadAnyObject(args[2]);
|
||||
|
||||
if (object == null) {
|
||||
sender.sendMessage("Failed to find existing object: " + args[2]);
|
||||
return true;
|
||||
}
|
||||
|
||||
File dest = Iris.instance.getDataFile("packs", args[1], "jigsaw-pieces", args[0] + ".json");
|
||||
new JigsawEditor(sender.player(), null, object, dest);
|
||||
sender.sendMessage("* Right Click blocks to make them connectors");
|
||||
|
||||
Reference in New Issue
Block a user