diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index b6ebd10..3702d73 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java index 66c6726..824026a 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java @@ -3367,6 +3367,9 @@ public class GenericFunctions { //This is an item cube. Update its lore. int id = Integer.parseInt(ItemUtils.GetLoreLineContainingSubstring(item, ChatColor.DARK_PURPLE+"ID#").split("#")[1]); ItemCubeUtils.updateVacuumCubeSuctionLoreLine(item); + if (TwosideKeeper.PLAYERJOINTOGGLE) { + ItemCubeUtils.updateItemCubeUpdateList(item); + } if (TwosideKeeper.itemcube_updates.containsKey(id)) { ItemUtils.DeleteAllLoreLinesAtAndAfterLineContainingSubstring(item, ChatColor.WHITE+"Contents ("); ItemUtils.DeleteAllLoreLinesAtAndAfterLineContainingSubstring(item, ChatColor.AQUA+" "); diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/Utils/ItemCubeUtils.java b/src/sig/plugin/TwosideKeeper/HelperStructures/Utils/ItemCubeUtils.java index 2b91a7c..8fcd4dd 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/Utils/ItemCubeUtils.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/Utils/ItemCubeUtils.java @@ -338,4 +338,23 @@ public class ItemCubeUtils { } } } + public static void updateItemCubeUpdateList(ItemStack item) { + List itemcube_list = new ArrayList(); + for (ItemStack items : ItemCubeUtils.getItemCubeContents(ItemCubeUtils.getItemCubeID(item))) { + if (ItemUtils.isValidItem(items)) { + boolean found=false; + for (int j=0;j