mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Fix Minimum
This commit is contained in:
1 parent
f1ed8fb66f
commit
cf4cbc0896
3 files changed
+10
-2
No files matched your search
@@ -452,7 +452,7 @@ public class SubGuiPlayerData extends SubGuiInterface implements IPlayerDataInfo
|
||||
|
||||
splitField.setFloatsOnly();
|
||||
damageField.setFloatsOnly();
|
||||
splitField.setMinMaxDefaultFloat(0, 1000000000, 0);
|
||||
splitField.setMinMaxDefaultFloat(-100000, 1000000000, 0);
|
||||
damageField.setMinMaxDefaultFloat(0, 1000000000, 0);
|
||||
splitField.enabled = false;
|
||||
damageField.enabled = false;
|
||||
|
||||
@@ -80,7 +80,7 @@ public class GuiNPCMagic extends GuiNPCInterface2 implements IScrollData, ICusto
|
||||
addLabel(new GuiNpcLabel(5002, "magic.split", guiLeft + 193, tfY + 5));
|
||||
splitField = new GuiNpcTextField(73, this, fontRendererObj, guiLeft + 250, tfY, 45, 20, "");
|
||||
splitField.setFloatsOnly();
|
||||
splitField.setMinMaxDefaultFloat(0, 1000000000, 0);
|
||||
splitField.setMinMaxDefaultFloat(-1000000, 1000000000, 0);
|
||||
splitField.enabled = false;
|
||||
addTextField(splitField);
|
||||
|
||||
|
||||
@@ -407,10 +407,18 @@ public class GuiNpcManageMagic extends GuiNPCInterface2 implements ISubGuiListen
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
magic.writeNBT(compound);
|
||||
PacketClient.sendClient(new MagicSavePacket(compound));
|
||||
if (selectedMagic != null) {
|
||||
selectedMagic = null;
|
||||
if (rightScroll != null)
|
||||
rightScroll.selected = -1;
|
||||
}
|
||||
break;
|
||||
case 1: // Remove Magic.
|
||||
if (selectedMagic != null) {
|
||||
PacketClient.sendClient(new MagicRemovePacket(selectedMagic.id));
|
||||
selectedMagic = null;
|
||||
if (rightScroll != null)
|
||||
rightScroll.selected = -1;
|
||||
}
|
||||
break;
|
||||
case 2: // Edit Magic.
|
||||
|
||||
Reference in new issue
Block a user