Skip to content

Commit

Permalink
23w16a
Browse files Browse the repository at this point in the history
  • Loading branch information
andi-makes committed Apr 21, 2023
1 parent 98ef89d commit 969061b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=23w14a
yarn_mappings=23w14a+build.1
minecraft_version=23w16a
#yarn_mappings=23w16a+build.4
loader_version=0.14.19

#Fabric api
fabric_version=0.77.1+1.20
fabric_version=0.78.1+1.20

# Mod Properties
mod_version=1.2.1
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/schmarrn/lighty/mode/carpet/Blocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Blocks {
public static final Block RED_OVERLAY = registerOverlayBlock("red_overlay", LightyColors.getDanger());

private static Block registerOverlayBlock(String name, int color) {
Block overlay = new OverlayBlock(BlockBehaviour.Properties.of(Material.GLASS), color);
Block overlay = new OverlayBlock(BlockBehaviour.Properties.of(Material.DEPRECATED), color);
Registry.register(BuiltInRegistries.BLOCK, new ResourceLocation(Lighty.MOD_ID, name), overlay);
return overlay;
}
Expand Down
9 changes: 5 additions & 4 deletions src/main/java/dev/schmarrn/lighty/ui/ModeSwitcherScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.mojang.blaze3d.vertex.PoseStack;
import dev.schmarrn.lighty.ModeLoader;
import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.components.Tooltip;
import net.minecraft.client.gui.layouts.FrameLayout;
Expand Down Expand Up @@ -39,10 +40,10 @@ protected void init() {
}

@Override
public void render(@NotNull PoseStack matrices, int mouseX, int mouseY, float delta) {
renderBackground(matrices);
drawCenteredString(matrices, this.font, this.title, this.width/2, 15, 0xFFFFFF);
super.render(matrices, mouseX, mouseY, delta);
public void render(@NotNull GuiGraphics guiGraphics, int mouseX, int mouseY, float delta) {
renderBackground(guiGraphics);
guiGraphics.drawCenteredString(this.font, this.title, this.width/2, 15, 0xFFFFFF);
super.render(guiGraphics, mouseX, mouseY, delta);
}


Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"depends": {
"fabricloader": ">=0.14.18",
"minecraft": ">=1.20.0-alpha.23.14.a",
"minecraft": ">=1.20.0-alpha.23.16.a",
"fabric": "*"
}
}

0 comments on commit 969061b

Please sign in to comment.