Skip to content

Commit 89e20c2

Browse files
committed
Fix rendering glitch of chunk loading core
1 parent dd22a2b commit 89e20c2

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 2.0.2 - 2025-05-19
9+
10+
### Fixed
11+
12+
- Rendering glitch of the chunk loading core when assembled on a contraption
13+
814
## 2.0.1 - 2025-05-19
915

1016
### Fixed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ mod_name=Create: Power Loader
3737
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
3838
mod_license=MIT
3939
# The mod version. See https://semver.org/
40-
mod_version=2.0.1-mc1.21.1
40+
mod_version=2.0.2-mc1.21.1
4141
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
4242
# This should match the base package used for the mod sources.
4343
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

src/main/java/com/hlysine/create_power_loader/content/AbstractChunkLoaderRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void renderInContraption(MovementContext context, VirtualRenderWorld rend
9393
core
9494
.transform(matrices.getModel())
9595
.center()
96-
.rotateZ(shouldFunction ? angle : 0)
96+
.rotateZDegrees(shouldFunction ? angle : 0)
9797
.uncenter()
9898
.light(light)
9999
.useLevelLight(context.world, matrices.getWorld())

src/main/java/com/hlysine/create_power_loader/content/ChunkLoaderMovementBehaviour.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ public void renderInContraption(MovementContext context, VirtualRenderWorld rend
156156
ContraptionRenderer.renderInContraption(context, renderWorld, matrices, buffer, type);
157157
}
158158

159+
@Override
160+
public boolean disableBlockEntityRendering() {
161+
return true;
162+
}
163+
159164
private boolean shouldFunction(MovementContext context) {
160165
if (context.contraption instanceof CarriageContraption) {
161166
return false; // train loading is handled with special logic

update.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"homepage": "https://github.com/hlysine/create_power_loader/",
33
"promos": {
4-
"1.21.1-recommended": "2.0.1-mc1.21.1",
5-
"1.20.1-recommended": "2.0.1-mc1.20.1",
4+
"1.21.1-recommended": "2.0.2-mc1.21.1",
5+
"1.20.1-recommended": "2.0.2-mc1.20.1",
66
"1.19.2-recommended": "1.5.0-mc1.19.2",
77
"1.18.2-recommended": "1.5.0-mc1.18.2"
88
}

0 commit comments

Comments
 (0)