Skip to content

Commit

Permalink
1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gliscowo committed Jan 5, 2024
1 parent 1fe37ec commit aa9edc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_base_version=1.20.2
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.2
loader_version=0.14.22
minecraft_base_version=1.20.3
minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.3
# Mod Properties
mod_version=0.4.6
maven_group=com.glisco
archives_base_name=isometric-renders

# Dependencies
fabric_version=0.89.3+1.20.2
fabric_version=0.92.0+1.20.4

# https://maven.wispforest.io/io/wispforest/worldmesher/
worldmesher_version=0.4.3+1.20
worldmesher_version=0.4.3+1.20.3

# https://maven.wispforest.io/io/wispforest/exo/
exo_version=0.1.5+1.19

# https://maven.wispforest.io/io/wispforest/owo-lib/
owo_version=0.11.3+1.20.2
owo_version=0.12.0+1.20.3
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.glisco.isometricrenders.property.Property;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.widget.CheckboxWidget;
import net.minecraft.text.Text;

Expand All @@ -11,22 +10,10 @@ public class PropertyCheckboxComponent extends CheckboxWidget {
private final Property<Boolean> property;

public PropertyCheckboxComponent(Text message, Property<Boolean> property) {
super(0, 0, 20, 20, message, property.get(), false);
super(0, 0, message, MinecraftClient.getInstance().textRenderer, property.get(), (checkbox, checked) -> {});
this.property = property;
}

@Override
public void renderButton(DrawContext context, int mouseX, int mouseY, float delta) {
super.renderButton(context, mouseX, mouseY, delta);
context.drawText(
MinecraftClient.getInstance().textRenderer,
this.getMessage(),
this.getX() + 24,
(int) (this.getY() + (this.height - 8) / 2f),
0xAAAAAA, false
);
}

@Override
public void onPress() {
super.onPress();
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 @@ -33,7 +33,7 @@
"fabricloader": ">=0.11.3",
"fabric": ">=0.85.0",
"worldmesher": ">=0.4.2",
"minecraft": ">=1.20.2",
"minecraft": ">=1.20.3",
"owo": ">=0.11.3"
},
"custom": {
Expand Down

0 comments on commit aa9edc7

Please sign in to comment.