Fix Custom Effect Desync

This commit is contained in:
Kam committed 2025-02-12 03:15:28 -05:00
1 parent 411b4dac51
commit cb206348c5
5 files changed
+40 -33

No files matched your search

@@ -131,7 +131,7 @@ public class SubGuiEffectGeneral extends SubGuiInterface implements ITextfieldLi
// TODO: FIX TEXTURE
// textureManager.bindTexture(new ResourceLocation(CustomNpcPlusDBC.ID + ":textures/gui/icons.png"));
func_152125_a(x, y, 0, 240, 16, 16, iconRenderSize, iconRenderSize, 256, 256);
// func_152125_a(x, y, 0, 240, 16, 16, iconRenderSize, iconRenderSize, 256, 256);
GL11.glEnable(GL11.GL_DEPTH_TEST);
}
};
@@ -112,7 +112,7 @@ public class GuiNPCManageEffects extends GuiNPCInterface2 implements ICustomScro
effect.readFromNBT(compound);
setSelected(effect.name);
if (effect.id != -1) {
CustomEffectController.getInstance().customEffects.replace(effect.id, effect);
CustomEffectController.getInstance().getCustomEffects().replace(effect.id, effect);
}
initGui();
}