Error upon editing custom block drops
knokko opened this issue ยท 0 comments
Upon attempting to edit a drop entry of a new custom block, I got the following error:
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: This CustomBlockDrop is immutable
at nl.knokko.customitems.block.drop.CustomBlockDrop.assertMutable(CustomBlockDrop.java:115)
at nl.knokko.customitems.block.drop.CustomBlockDrop.copyFrom(CustomBlockDrop.java:57)
at nl.knokko.customitems.block.drop.CustomBlockDrop.copyFrom(CustomBlockDrop.java:66)
at nl.knokko.customitems.editor.menu.edit.block.EditCustomBlockDrop.lambda$addComponents$2(EditCustomBlockDrop.java:68)
at nl.knokko.gui.component.text.dynamic.DynamicTextButton.click(DynamicTextButton.java:67)
at nl.knokko.gui.component.menu.GuiMenu$SubComponent.click(GuiMenu.java:427)
at nl.knokko.gui.component.menu.GuiMenu.click(GuiMenu.java:164)
at nl.knokko.gui.window.AWTGuiWindow$Listener.mouseReleased(AWTGuiWindow.java:338)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635)
at java.desktop/java.awt.Component.processEvent(Component.java:6400)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Window.processEvent(Window.java:2049)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)