mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b9bc1e5ed7
4 files changed
+7
-4
No files matched your search
@@ -61,7 +61,7 @@ import noppes.npcs.entity.old.EntityNpcNagaMale;
|
||||
import noppes.npcs.entity.old.EntityNpcSkeleton;
|
||||
import noppes.npcs.scripted.wrapper.WrapperNpcAPI;
|
||||
|
||||
@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.4")
|
||||
@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.4.2")
|
||||
public class CustomNpcs {
|
||||
|
||||
@ConfigProp(info = "Disable Chat Bubbles")
|
||||
|
||||
@@ -79,7 +79,7 @@ public class SubGuiNpcDialogExtra extends SubGuiInterface implements ISubGuiList
|
||||
if(button.id == 15){
|
||||
dialog.disableEsc = button.getValue() == 1;
|
||||
}
|
||||
if(button.id == 15){
|
||||
if(button.id == 16){
|
||||
dialog.darkenScreen = button.getValue() == 1;
|
||||
}
|
||||
if(button.id == 13){
|
||||
|
||||
@@ -60,7 +60,8 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
else
|
||||
showWheel = true;
|
||||
disableEsc = compound.getBoolean("DialogDisableEsc");
|
||||
|
||||
darkenScreen = compound.getBoolean("DialogDarkenScreen");
|
||||
|
||||
NBTTagList options = compound.getTagList("Options", 10);
|
||||
HashMap<Integer,DialogOption> newoptions = new HashMap<Integer,DialogOption>();
|
||||
for(int iii = 0; iii < options.tagCount();iii++){
|
||||
@@ -91,6 +92,7 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
compound.setBoolean("DialogHideNPC", hideNPC);
|
||||
compound.setBoolean("DialogShowWheel", showWheel);
|
||||
compound.setBoolean("DialogDisableEsc", disableEsc);
|
||||
compound.setBoolean("DialogDarkenScreen", darkenScreen);
|
||||
|
||||
if(sound != null && !sound.isEmpty())
|
||||
compound.setString("DialogSound", sound);
|
||||
@@ -134,6 +136,7 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
dialog.hideNPC = hideNPC;
|
||||
dialog.showWheel = showWheel;
|
||||
dialog.disableEsc = disableEsc;
|
||||
dialog.darkenScreen = darkenScreen;
|
||||
|
||||
for(int slot : options.keySet()){
|
||||
DialogOption option = options.get(slot);
|
||||
|
||||
Reference in new issue
Block a user