Skip to content

Commit eaf39b0

Browse files
committed
Update bad action dump text and stop custom layers on ground
1 parent cab5f1c commit eaf39b0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/dev/dfonline/codeclient/dev/DevInventory/DevInventoryScreen.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import net.minecraft.text.ClickEvent;
3232
import net.minecraft.text.Style;
3333
import net.minecraft.text.Text;
34+
import net.minecraft.util.Formatting;
3435
import net.minecraft.util.Hand;
3536
import net.minecraft.util.Identifier;
3637
import net.minecraft.util.math.MathHelper;
@@ -112,8 +113,8 @@ protected void init() {
112113
}
113114
catch (IOException | JsonParseException e) {
114115
CodeClient.LOGGER.error(e.getMessage());
115-
Utility.sendMessage(Text.literal("Could not parse the ActionDump. Install it using §b/getactiondump colors §cin Node Beta or download a (maybe outdated) version by clicking on this message.")
116-
.setStyle(Style.EMPTY.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://dfonline.dev/public/dbc.json"))), ChatType.FAIL);
116+
Utility.sendMessage(Text.literal("Could not parse the ActionDump. Go to ").append(Text.literal("https://github.com/DFOnline/CodeClient/wiki/actiondump").formatted(Formatting.AQUA)).append(Text.literal(" to find out how to fix this."))
117+
.setStyle(Style.EMPTY.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://github.com/DFOnline/CodeClient/wiki/actiondump"))), ChatType.FAIL);
117118
}
118119

119120
TextRenderer textRenderer = this.textRenderer;

src/main/java/dev/dfonline/codeclient/dev/InteractionManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public static VoxelShape customVoxelShape(BlockView world, BlockPos pos) {
252252
boolean isLevel = plot.isInCodeSpace(pos.getX(), plot.getZ()) && pos.getY() % 5 == 4;
253253
boolean noClipAllowsBlock = Config.getConfig().NoClipEnabled || world.getBlockState(pos).isAir();
254254
boolean hideCodeSpace =
255+
pos.getY() >= 50 &&
255256
noClipAllowsBlock &&
256257
mode != Config.LayerInteractionMode.OFF
257258
&& isLevel

0 commit comments

Comments
 (0)