From 4375bb0c1070072e8ce276916b3029a9416289d4 Mon Sep 17 00:00:00 2001 From: Wynd Date: Mon, 30 Jun 2025 13:15:50 +0300 Subject: [PATCH] Small change in how often lava popping can be heard + default just recipe --- justfile | 17 +++++++++-------- .../minecraft/src/BlockStationary.java.patch | 16 +++++++++------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/justfile b/justfile index 886de8e..a66c36b 100644 --- a/justfile +++ b/justfile @@ -3,6 +3,15 @@ set export modName := "finalbeta" modVersion := "1.4.0" +build: + # Delete previous builds + fd . './builds' -e .zip --exec rm + just create-patches + ./recompile.sh + ./reobfuscate.sh + for file in $(fd . ./lib -e "jar"); do unzip -qo "$file" -d "./reobf/minecraft/"; done + (cd ./reobf/minecraft && zip -qr "../../builds/${modName}-${modVersion}-modloader.zip" ./*) + setup: ./cleanup.sh ./decompile.sh @@ -50,11 +59,3 @@ create-patches: diff -Nau "$file" "$core" > "$patch" || true done) -build: - # Delete previous builds - fd . './builds' -e .zip --exec rm - just create-patches - ./recompile.sh - ./reobfuscate.sh - for file in $(fd . ./lib -e "jar"); do unzip -qo "$file" -d "./reobf/minecraft/"; done - (cd ./reobf/minecraft && zip -qr "../../builds/${modName}-${modVersion}-modloader.zip" ./*) diff --git a/src/minecraft/net/minecraft/src/BlockStationary.java.patch b/src/minecraft/net/minecraft/src/BlockStationary.java.patch index 55ccce4..3ef1424 100644 --- a/src/minecraft/net/minecraft/src/BlockStationary.java.patch +++ b/src/minecraft/net/minecraft/src/BlockStationary.java.patch @@ -1,14 +1,16 @@ --- src/BlockStationary.java.bak 2025-04-06 23:16:22.506060418 +0300 -+++ src/BlockStationary.java 2025-04-06 23:17:28.160290908 +0300 -@@ -46,6 +46,13 @@ ++++ src/BlockStationary.java 2025-06-30 13:01:04.686946445 +0300 +@@ -46,6 +46,15 @@ { if(blockMaterial == Material.lava) { -+ if (world.rand.nextInt(10) == 1) { -+ world.playSoundEffect(i, j, k, "sound3.liquid.lava", 0.5f, 1.0f); -+ } -+ else { -+ world.playSoundEffect(i, j, k, "sound3.liquid.lavapop", 0.5f, 1.0f); ++ if (world.rand.nextInt(16) == 1) { ++ if (world.rand.nextInt(3) == 1) { ++ world.playSoundEffect(i, j, k, "sound3.liquid.lava", 0.5f, 1.0f); ++ } ++ else { ++ world.playSoundEffect(i, j, k, "sound3.liquid.lavapop", 0.5f, 1.0f); ++ } + } + int l = random.nextInt(3);