Skip to content

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed May 21, 2023
1 parent 9e0fc29 commit 58c0117
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ org.gradle.jvmargs = -Xmx1G
org.gradle.parallel = true

# https://fabricmc.net/develop
minecraft_version = 1.19
yarn_mappings = 1.19+build.4
minecraft_version = 1.18
yarn_mappings = 1.18+build.1
loader_version = 0.14.19

mod_version = 1.1.0
maven_group = net.krlite
archives_base_name = flash

# Dependencies
fabric_version = 0.58.0+1.19
fabric_version = 0.46.0+1.18
equator_version = v2.4.0
2 changes: 1 addition & 1 deletion src/main/java/net/krlite/flash/Flash.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void listenInput(MinecraftClient client) {

if (CLEAR.wasPressed()) clear();

if (client.options.sneakKey.isPressed()) {
if (client.options.keySneak.isPressed()) {
shrink.speed(MIN_SPEED);
drop.speed(MIN_SPEED);
} else {
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/net/krlite/flash/FlashRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public static void render(MatrixStack matrixStack, IntBuffer intBuffer) {
color(builder, matrix, minWidth / 2 + Flash.BORDER, height / 2 + Flash.BORDER, borderColor); // Bottom right
color(builder, matrix, width / 2 + Flash.BORDER, -(minHeight / 2 + Flash.BORDER), borderColor); // Top right

BufferRenderer.drawWithShader(builder.end());
builder.end();
BufferRenderer.draw(builder);

RenderSystem.disableCull();
RenderSystem.setShader(GameRenderer::getPositionTexColorShader);
Expand All @@ -70,7 +71,8 @@ public static void render(MatrixStack matrixStack, IntBuffer intBuffer) {
); // Right
}

BufferRenderer.drawWithShader(builder.end());
builder.end();
BufferRenderer.draw(builder);
RenderSystem.enableCull();

matrixStack.pop();
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 @@ -30,7 +30,7 @@
"fabricloader": ">=0.14.19",
"fabric": "*",
"fabric-key-binding-api-v1": "*",
"minecraft": ["~1.19", "~1.19.1", "~1.19.2"]
"minecraft": ["~1.18", "~1.18.1", "~1.18.2"]
},
"suggests": {
}
Expand Down

0 comments on commit 58c0117

Please sign in to comment.