mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Fix Item Slot not registering changes properly
This commit is contained in:
1 parent
6f3b8f0a77
commit
a872bc7035
3 files changed
+68
-22
No files matched your search
@@ -256,7 +256,7 @@ public class ScriptGui implements ICustomGui {
|
||||
for(int i = 0; i < list.tagCount(); i++){
|
||||
NBTBase b = list.getCompoundTagAt(i);
|
||||
ScriptGuiComponent component = ScriptGuiComponent.createFromNBT((NBTTagCompound)b);
|
||||
if (component != null) {
|
||||
if (component != null && !(component instanceof ScriptGuiItemSlot)) {
|
||||
components.put(component.getID(), component);
|
||||
}
|
||||
}
|
||||
@@ -267,6 +267,7 @@ public class ScriptGui implements ICustomGui {
|
||||
for(int i = 0; i < list.tagCount(); i++){
|
||||
NBTBase b = list.getCompoundTagAt(i);
|
||||
ScriptGuiItemSlot component = (ScriptGuiItemSlot)ScriptGuiComponent.createFromNBT((NBTTagCompound)b);
|
||||
components.put(component.getID(), component);
|
||||
slots.add(component);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user