Clone static itemstack before modifying it
This commit is contained in:
parent
cc60244fd0
commit
907ad4819e
|
|
@ -44,7 +44,7 @@ public class ChooseParticleGUI extends DefaultGUI {
|
|||
for (ParticleSet particleSet : availableParticles) {
|
||||
if (i >= 25) //leave the last 2 slots of the inventory open
|
||||
return;
|
||||
ItemStack itemStack = particleSet.getItemStack();
|
||||
ItemStack itemStack = particleSet.getItemStack().clone();
|
||||
ParticleSet activeParticleSet = playerSettings.getParticles(aPartType);
|
||||
|
||||
if (activeParticleSet != null && playerSettings.getParticles(aPartType).equals(particleSet)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user