Skip to content

Commit

Permalink
update worldmesher to fix fabric API compat, fix area renderable rota…
Browse files Browse the repository at this point in the history
…tion axis
  • Loading branch information
gliscowo committed Feb 25, 2024
1 parent 9d719cf commit bb34dff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ maven_group=com.glisco
archives_base_name=isometric-renders

# Dependencies
fabric_version=0.96.1+1.20.4
fabric_version=0.96.3+1.20.4

# https://maven.wispforest.io/io/wispforest/worldmesher/
worldmesher_version=0.4.3+1.20.3
worldmesher_version=0.4.5+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.12.0+1.20.3
owo_version=0.12.5+1.20.3
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public AreaRenderable(WorldMesh mesh) {
this.mesh = mesh;

final var dimensions = mesh.dimensions();
this.xSize = (int) dimensions.getLengthX() + 1;
this.ySize = (int) dimensions.getLengthY() + 1;
this.zSize = (int) dimensions.getLengthZ() + 1;
this.xSize = (int) dimensions.getLengthX();
this.ySize = (int) dimensions.getLengthY();
this.zSize = (int) dimensions.getLengthZ();
}

public static AreaRenderable of(BlockPos origin, BlockPos end) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
if (this.drawOnlyBackground) {
context.fill(0, 0, this.width, this.height, GlobalProperties.backgroundColor | 255 << 24);
} else {
this.renderBackground(context, mouseX, mouseY, delta);
this.renderInGameBackground(context);
}

final var window = client.getWindow();
Expand All @@ -334,10 +334,11 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
);

if (!this.drawOnlyBackground && this.uiAdapter != null) {
RenderSystem.clear(GL11.GL_DEPTH_BUFFER_BIT, MinecraftClient.IS_SYSTEM_MAC);

drawFramingHint(context);
drawGuiBackground(context);

RenderSystem.clear(GL11.GL_DEPTH_BUFFER_BIT, MinecraftClient.IS_SYSTEM_MAC);
super.render(context, mouseX, mouseY, delta);

if (this.exportAnimationButton != null) {
Expand Down

0 comments on commit bb34dff

Please sign in to comment.