mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 03:49:10 +00:00
Added configurable limits to skin overlays and dialog images.
This commit is contained in:
1 parent
7cfc4ccca4
commit
40a210ce8f
5 files changed
+29
-1
No files matched your search
@@ -3,6 +3,7 @@ package noppes.npcs.client.gui;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.CustomNpcs;
|
||||
import noppes.npcs.client.Client;
|
||||
import noppes.npcs.client.NoppesUtil;
|
||||
import noppes.npcs.client.gui.global.GuiNPCManageDialogs;
|
||||
@@ -323,6 +324,10 @@ public class SubGuiNpcDialogVisual extends SubGuiInterface implements ISubGuiLis
|
||||
|
||||
if (activeMenu == 3) {
|
||||
if (button.id == 1) {
|
||||
if (dialog.dialogImages.size() >= CustomNpcs.DialogImageLimit) {
|
||||
return;
|
||||
}
|
||||
|
||||
int addId = 0;
|
||||
if (selected != -1 && imageScroll.getSelected() != null) {
|
||||
DialogImage selectedImage = (DialogImage) dialog.dialogImages.get(Integer.valueOf(imageScroll.getSelected()));
|
||||
|
||||
Reference in new issue
Block a user