Skip to content

Commit fcade0a

Browse files
Merge branch '1.21.9'
2 parents 61d6acb + 91e588f commit fcade0a

12 files changed

Lines changed: 36 additions & 32 deletions

File tree

gradle.properties

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Done to increase the memory available to gradle.
2-
org.gradle.jvmargs=-Xmx1G
2+
org.gradle.jvmargs=-Xmx2G
33
org.gradle.parallel=true
44
org.gradle.caching=true
55
org.gradle.configuration-cache=true
@@ -8,34 +8,34 @@ org.gradle.warning.mode=fail
88
# Fabric Properties
99
# check these at https://fabricmc.net/develop/ and
1010
# https://modrinth.com/mod/fabric-api/versions
11-
minecraft_version=1.21.8
12-
yarn_mappings=1.21.8+build.1
11+
minecraft_version=1.21.9
12+
yarn_mappings=1.21.9+build.1
1313
loader_version=0.17.2
1414
loom_version=1.11-SNAPSHOT
1515

1616
# Fabric API
17-
fabric_version=0.133.4+1.21.8
17+
fabric_version=0.134.0+1.21.9
1818

1919
# Mod Properties
20-
mod_version=1.4-MC1.21.8-Fabric
20+
mod_version=1.4-MC1.21.9-Fabric
2121
maven_group=net.wimods.chestesp
2222
archives_base_name=ChestESP
2323
mod_loader=Fabric
2424

2525
# CurseForge
2626
cf_project_id=870203
27-
cf_game_version=1.21.8
27+
cf_game_version=1.21.9
2828

2929
# GitHub
3030
gh_repo_id=Wurst-Imperium/ChestESP
3131
mcx_repo_id=Wurst-Imperium-MCX/ChestESP
3232

3333
# Dependencies
3434
# check at https://modrinth.com/mod/modmenu/versions
35-
modmenu_version=15.0.0
35+
modmenu_version=16.0.0-rc.1
3636
# check at https://modrinth.com/mod/cloth-config/versions?l=fabric
37-
cloth_config_version=19.0.147
37+
cloth_config_version=20.0.148
3838
# check at https://modrinth.com/mod/lootr/versions?l=fabric
3939
lootr_version=fabric-1.21.8-1.16.39.95
4040
# turn off if Lootr is not yet available for the current Minecraft version
41-
do_lootr_test=true
41+
do_lootr_test=false

gradlew

100644100755
File mode changed.

src/gametest/java/net/wimods/chestesp/gametest/ChestESPTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void runTest(ClientGameTestContext context)
6363
"https://i.imgur.com/Q1IyYQG.png");
6464
else
6565
assertScreenshotEquals(context, "mod_menu",
66-
"https://i.imgur.com/PU7EsPS.png");
66+
"https://i.imgur.com/EY2sFws.png");
6767

6868
LOGGER.info("Clicking configure button");
6969
TestInput input = context.getInput();
@@ -116,7 +116,7 @@ private void testInWorld(ClientGameTestContext context,
116116
world.waitForChunksRender();
117117

118118
assertScreenshotEquals(context, "in_game",
119-
"https://i.imgur.com/E8j601u.png");
119+
"https://i.imgur.com/i2Nr9is.png");
120120

121121
LOGGER.info("Recording debug menu");
122122
input.pressKey(GLFW.GLFW_KEY_F3);
@@ -130,13 +130,13 @@ private void testInWorld(ClientGameTestContext context,
130130
"https://i.imgur.com/8T8FDmg.png");
131131
else
132132
assertScreenshotEquals(context, "inventory",
133-
"https://i.imgur.com/uaRQbyJ.png");
133+
"https://i.imgur.com/GP74ZNS.png");
134134
input.pressKey(GLFW.GLFW_KEY_ESCAPE);
135135

136136
LOGGER.info("Opening game menu");
137137
input.pressKey(GLFW.GLFW_KEY_ESCAPE);
138138
assertScreenshotEquals(context, "game_menu",
139-
"https://i.imgur.com/7g7wN11.png");
139+
"https://i.imgur.com/5mMgnXc.png");
140140
input.pressKey(GLFW.GLFW_KEY_ESCAPE);
141141

142142
LOGGER.info("Building vanilla test rig");

src/gametest/java/net/wimods/chestesp/gametest/VanillaTestRig.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static void build(ClientGameTestContext context,
7474
public static void test(ClientGameTestContext context)
7575
{
7676
assertScreenshotEquals(context, "ChestESP_default_settings",
77-
"https://i.imgur.com/WFzW2zj.png");
77+
"https://i.imgur.com/5SS5W2T.png");
7878

7979
ChestESPTest.LOGGER.info("Enabling all ChestESP groups");
8080
ChestESPTest.withConfig(context, config -> {
@@ -87,25 +87,25 @@ public static void test(ClientGameTestContext context)
8787
config.include_furnaces = true;
8888
});
8989
assertScreenshotEquals(context, "ChestESP_boxes",
90-
"https://i.imgur.com/2EJ9bUx.png");
90+
"https://i.imgur.com/lRMaLRU.png");
9191

9292
ChestESPTest.LOGGER.info("Changing style to lines");
9393
ChestESPTest.withConfig(context, config -> {
9494
config.style = ChestEspStyle.LINES;
9595
});
9696
assertScreenshotEquals(context, "ChestESP_lines",
97-
"https://i.imgur.com/VzVI2Vm.png");
97+
"https://i.imgur.com/jhVL1Ne.png");
9898

9999
ChestESPTest.LOGGER.info("Changing style to lines and boxes");
100100
ChestESPTest.withConfig(context, config -> {
101101
config.style = ChestEspStyle.LINES_AND_BOXES;
102102
});
103103
assertScreenshotEquals(context, "ChestESP_lines_and_boxes",
104-
"https://i.imgur.com/mc86M6S.png");
104+
"https://i.imgur.com/XiFiGvh.png");
105105

106106
ChestESPTest.LOGGER.info("Changing all color settings");
107107
ChestESPTest.setRainbowColors(context);
108108
assertScreenshotEquals(context, "ChestESP_custom_colors",
109-
"https://i.imgur.com/RBQEZmd.png");
109+
"https://i.imgur.com/TBsz8Eq.png");
110110
}
111111
}

src/main/java/net/wimods/chestesp/ChestEspMod.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import net.minecraft.client.option.KeyBinding;
2222
import net.minecraft.client.util.InputUtil;
2323
import net.minecraft.client.util.math.MatrixStack;
24+
import net.minecraft.util.Identifier;
2425
import net.minecraft.util.math.Box;
2526
import net.minecraft.util.math.Vec3d;
2627
import net.wimods.chestesp.util.ChunkUtils;
@@ -48,9 +49,11 @@ public ChestEspMod()
4849

4950
groups = new ChestEspGroupManager(configHolder);
5051

52+
KeyBinding.Category kbCategory =
53+
KeyBinding.Category.create(Identifier.of("chestesp", "chestesp"));
5154
toggleKey = KeyBindingHelper
5255
.registerKeyBinding(new KeyBinding("key.chestesp.toggle",
53-
InputUtil.UNKNOWN_KEY.getCode(), "ChestESP"));
56+
InputUtil.UNKNOWN_KEY.getCode(), kbCategory));
5457

5558
ClientTickEvents.END_CLIENT_TICK.register(client -> {
5659
boolean enabled = configHolder.get().enable;

src/main/java/net/wimods/chestesp/mixin/WorldRendererMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ public abstract class WorldRendererMixin
2929
implements SynchronousResourceReloader, AutoCloseable
3030
{
3131
@Inject(at = @At("RETURN"),
32-
method = "render(Lnet/minecraft/client/util/ObjectAllocator;Lnet/minecraft/client/render/RenderTickCounter;ZLnet/minecraft/client/render/Camera;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lcom/mojang/blaze3d/buffers/GpuBufferSlice;Lorg/joml/Vector4f;Z)V")
32+
method = "render(Lnet/minecraft/client/util/ObjectAllocator;Lnet/minecraft/client/render/RenderTickCounter;ZLnet/minecraft/client/render/Camera;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lcom/mojang/blaze3d/buffers/GpuBufferSlice;Lorg/joml/Vector4f;Z)V")
3333
private void onRender(ObjectAllocator allocator,
3434
RenderTickCounter tickCounter, boolean renderBlockOutline,
3535
Camera camera, Matrix4f positionMatrix, Matrix4f projectionMatrix,
36-
GpuBufferSlice gpuBufferSlice, Vector4f vector4f, boolean bl,
37-
CallbackInfo ci)
36+
Matrix4f matrix4f2, GpuBufferSlice gpuBufferSlice, Vector4f vector4f,
37+
boolean bl, CallbackInfo ci)
3838
{
3939
MatrixStack matrixStack = new MatrixStack();
4040
matrixStack.multiplyPositionMatrix(positionMatrix);

src/main/java/net/wimods/chestesp/util/EntityUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static Vec3d getLerpedPos(Entity e, float partialTicks)
3131
// When an entity is removed, it stops moving and its lastRenderX/Y/Z
3232
// values are no longer updated.
3333
if(e.isRemoved())
34-
return e.getPos();
34+
return e.getEntityPos();
3535

3636
double x = MathHelper.lerp(partialTicks, e.lastRenderX, e.getX());
3737
double y = MathHelper.lerp(partialTicks, e.lastRenderY, e.getY());
@@ -57,7 +57,7 @@ public static Box getLerpedBox(Entity e, float partialTicks)
5757
if(e.isRemoved())
5858
return e.getBoundingBox();
5959

60-
Vec3d offset = getLerpedPos(e, partialTicks).subtract(e.getPos());
60+
Vec3d offset = getLerpedPos(e, partialTicks).subtract(e.getEntityPos());
6161
return e.getBoundingBox().offset(offset);
6262
}
6363
}

src/main/java/net/wimods/chestesp/util/RenderUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public enum RenderUtils
3131

3232
public static Vec3d getCameraPos()
3333
{
34-
Camera camera = MC.getBlockEntityRenderDispatcher().camera;
34+
Camera camera = MC.gameRenderer.getCamera();
3535
if(camera == null)
3636
return Vec3d.ZERO;
3737

src/main/resources/assets/chestesp/lang/en_us.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"key.category.chestesp.chestesp": "ChestESP",
23
"key.chestesp.toggle": "Toggle ChestESP",
34
"text.autoconfig.chestesp.title": "ChestESP Settings",
45
"text.autoconfig.chestesp.option.enable": "Enable ChestESP",

src/main/resources/assets/chestesp/shaders/core/fogless_lines.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#version 150
1+
#version 330
22

33
#moj_import <minecraft:dynamictransforms.glsl>
44

0 commit comments

Comments
 (0)