diff options
| author | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-10-31 21:49:14 +1100 |
|---|---|---|
| committer | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-10-31 21:49:14 +1100 |
| commit | 431d4a5eca207aa6f86a90e3c4e1912885f115eb (patch) | |
| tree | 8d3bd19ad3d40da034aaca8e2766dadb627bfaf1 /src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java | |
| parent | 2397734d98c30a05db58bc6ef67607078889a386 (diff) | |
| download | notenoughupdates-431d4a5eca207aa6f86a90e3c4e1912885f115eb.tar.gz notenoughupdates-431d4a5eca207aa6f86a90e3c4e1912885f115eb.tar.bz2 notenoughupdates-431d4a5eca207aa6f86a90e3c4e1912885f115eb.zip | |
1.4.9
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java b/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java index 81be2204..d570843a 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java @@ -246,6 +246,8 @@ public class SBGamemodes { public void onTick(TickEvent.ClientTickEvent event) { if(getGamemode() == null || !NotEnoughUpdates.INSTANCE.hasSkyblockScoreboard()) return; + boolean inDungeons = SBInfo.getInstance().getLocation() != null && SBInfo.getInstance().getLocation().equals("dungeon"); + if("Your Island".equals(SBInfo.getInstance().location) && (EnumChatFormatting.YELLOW+"Break a log").equals(SBInfo.getInstance().objective)) { getGamemode().locked = false; @@ -291,7 +293,7 @@ public class SBGamemodes { Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText( EnumChatFormatting.AQUA+"(Use "+EnumChatFormatting.YELLOW+"/neugamemodes"+ EnumChatFormatting.AQUA+" if you would like to use fairy souls)")); - } else if(ironmanMode.isBanned(containerName)) { + } else if(!inDungeons && ironmanMode.isBanned(containerName)) { Minecraft.getMinecraft().thePlayer.closeScreen(); Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("")); |
