Skip to content

Commit

Permalink
Update to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Jul 15, 2024
1 parent b8ab640 commit 46b2bfb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
16 changes: 8 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ github_repository = andantet/noclip-fabric
modrinth_id = yDx6WroB
curseforge_id = 653377

major_version = 1.20.6
github_branch = 1.20.6
supported_versions = 1.20.6
major_version = 1.21
github_branch = 1.21
supported_versions = 1.21

# Versions
ver_minecraft = 1.20.6
ver_minecraft = 1.21
ver_loader = 0.15.11
ver_yarn = 3
ver_yarn = 9

ver_fabric = 0.100.4+1.20.6
ver_cloth_config = 14.0.126
ver_mod_menu = 10.0.0
ver_fabric = 0.100.7+1.21
ver_cloth_config = 15.0.127
ver_mod_menu = 11.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.render.RenderTickCounter;
import net.minecraft.client.util.Window;
import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.entity.effect.StatusEffectInstance;
Expand All @@ -30,15 +31,15 @@
*/
@Environment(EnvType.CLIENT)
public class NoClipHudRenderer implements HudRenderCallback {
public static final Identifier TEXTURE = new Identifier(NoClip.MOD_ID, "textures/gui/noclip.png");
public static final Identifier TEXTURE = Identifier.of(NoClip.MOD_ID, "textures/gui/noclip.png");

private long fade = -1;
private String activeDebugLine;

public NoClipHudRenderer() {}

@Override
public void onHudRender(DrawContext context, float tickDelta) {
public void onHudRender(DrawContext context, RenderTickCounter tickCounter) {
if (!NoClipManager.INSTANCE.isClipping() || !NoClipClient.getConfig().display.hudIcon) {
this.fade = -1;
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public record ClippingUpdatePacket(boolean clipping) implements CustomPayload {
public static final PacketCodec<PacketByteBuf, ClippingUpdatePacket> CODEC = CustomPayload.codecOf(ClippingUpdatePacket::write, ClippingUpdatePacket::new);
public static final Id<ClippingUpdatePacket> ID = new CustomPayload.Id<>(new Identifier(NoClip.MOD_ID, "update"));
public static final Id<ClippingUpdatePacket> ID = new CustomPayload.Id<>(Identifier.of(NoClip.MOD_ID, "update"));

private ClippingUpdatePacket(PacketByteBuf buf) {
this(buf.readBoolean());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import me.andante.noclip.impl.ClippingEntity;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.block.enums.CameraSubmersionType;
import net.minecraft.client.render.BackgroundRenderer;
import net.minecraft.client.render.Camera;
import net.minecraft.client.render.CameraSubmersionType;
import net.minecraft.entity.Entity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand Down

0 comments on commit 46b2bfb

Please sign in to comment.