From 9cb65da30926e0c6d8da5716d9586d95308c4cb7 Mon Sep 17 00:00:00 2001 From: Rosenthalk0 Date: Thu, 27 Apr 2023 16:36:17 -0500 Subject: [PATCH] Fix Null-Check on Particle Causing 1291 --- .../net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java index 4d088ea2..ea38ca50 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java @@ -101,7 +101,7 @@ public class ParticlesEdition extends EditionInventory { inv.setItem(slots[n++], modifierItem); } - } + if (ParticleData.isColorable(particle)) { int red = getEditedSection().getInt("item-particles.color.red"); @@ -137,7 +137,7 @@ public class ParticlesEdition extends EditionInventory { addEditionInventoryItems(inv, true); inv.setItem(21, particleTypeItem); inv.setItem(23, particleItem); - + } return inv; }