Skip to content

Commit 008e585

Browse files
zml2008Joo200
andauthored
1.19.3 (#80)
* 22w45a * 1.19.3-pre2 * Update branch to 1.19.3 release (#81) * Update to Fabric Release for 1.19.3 * Removed old compile setting in README.md Co-authored-by: JOO200 <github@joo200.de>
1 parent da278fb commit 008e585

File tree

10 files changed

+45
-30
lines changed

10 files changed

+45
-30
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ WorldEdit selections will be shown without any configuration necessary, but the
2121
Compiling
2222
---------
2323

24-
Run `_JAVA_OPTIONS="-Xmx2G" ./gradlew build`
24+
Run `./gradlew build`
2525

2626
To import the project into your IDE, see [FabricMC Wiki article](https://fabricmc.net/wiki/tutorial:setup) and start from **Step 3**.
2727

build.gradle.kts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
plugins {
22
java
3-
id("fabric-loom") version "1.0-SNAPSHOT"
4-
id("io.github.juuxel.loom-quiltflower") version "1.7.4"
5-
id("com.github.ben-manes.versions") version "0.42.0"
3+
id("fabric-loom") version "1.0.+"
4+
id("io.github.juuxel.loom-quiltflower") version "1.8.0"
5+
id("com.github.ben-manes.versions") version "0.44.0"
66
id("de.jjohannes.missing-metadata-guava") version "31.1.1"
77
}
88

9-
val minecraftVersion = "1.19.2"
10-
val fabricLoaderVersion = "0.14.10"
11-
val fabricApiVersion = "0.66.0+1.19.2"
12-
val modmenuVersion = "4.1.0"
9+
val minecraftVersion = "1.19.3"
10+
val fabricLoaderVersion = "0.14.11"
11+
val fabricApiVersion = "0.68.1+1.19.3"
12+
val modmenuVersion = "5.0.1"
1313
val multiconnectVersion = "1.5.10"
1414

1515
group = "org.enginehub.worldeditcui"
16-
version = "$minecraftVersion+02-SNAPSHOT"
16+
version = "$minecraftVersion+01-SNAPSHOT"
1717

1818
repositories {
1919
// mirrors:
@@ -60,7 +60,7 @@ dependencies {
6060
officialMojangMappings {
6161
nameSyntheticMembers = false
6262
}
63-
parchment("org.parchmentmc.data:parchment-1.19.2:2022.11.06@zip")
63+
parchment("org.parchmentmc.data:parchment-1.19.2:2022.11.27@zip")
6464
})
6565
modImplementation("net.fabricmc:fabric-loader:$fabricLoaderVersion")
6666
modImplementation("com.terraformersmc:modmenu:$modmenuVersion")
@@ -117,13 +117,13 @@ dependencies {
117117
}
118118

119119
// for development
120-
modRuntimeOnly("com.sk89q.worldedit:worldedit-fabric-mc1.19.2:7.2.12") {
120+
/*modRuntimeOnly("com.sk89q.worldedit:worldedit-fabric-mc1.19.2:7.2.12") {
121121
exclude("com.google.guava", "guava")
122122
exclude("com.google.code.gson", "gson")
123123
exclude("com.google.code.gson", "gson")
124124
exclude("it.unimi.dsi", "fastutil")
125125
exclude("org.apache.logging.log4j", "log4j-api")
126-
}
126+
}*/
127127
}
128128

129129
tasks {

gradle/wrapper/gradle-wrapper.jar

1.71 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac
@@ -205,6 +209,12 @@ set -- \
205209
org.gradle.wrapper.GradleWrapperMain \
206210
"$@"
207211

212+
# Stop when "xargs" is not available.
213+
if ! command -v xargs >/dev/null 2>&1
214+
then
215+
die "xargs is not available"
216+
fi
217+
208218
# Use "xargs" to parse quoted args.
209219
#
210220
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

gradlew.bat

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@rem limitations under the License.
1515
@rem
1616

17-
@if "%DEBUG%" == "" @echo off
17+
@if "%DEBUG%"=="" @echo off
1818
@rem ##########################################################################
1919
@rem
2020
@rem Gradle startup script for Windows
@@ -25,7 +25,8 @@
2525
if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
28-
if "%DIRNAME%" == "" set DIRNAME=.
28+
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
2930
set APP_BASE_NAME=%~n0
3031
set APP_HOME=%DIRNAME%
3132

@@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4041

4142
set JAVA_EXE=java.exe
4243
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto execute
44+
if %ERRORLEVEL% equ 0 goto execute
4445

4546
echo.
4647
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7576

7677
:end
7778
@rem End local scope for the variables with windows NT shell
78-
if "%ERRORLEVEL%"=="0" goto mainEnd
79+
if %ERRORLEVEL% equ 0 goto mainEnd
7980

8081
:fail
8182
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8283
rem the _cmd.exe /c_ return code!
83-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84-
exit /b 1
84+
set EXIT_CODE=%ERRORLEVEL%
85+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
86+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87+
exit /b %EXIT_CODE%
8588

8689
:mainEnd
8790
if "%OS%"=="Windows_NT" endlocal

src/main/java/org/enginehub/worldeditcui/fabric/FabricModWorldEditCUI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private void onTick(final Minecraft mc) {
121121

122122
while (this.keyBindClearSel.consumeClick()) {
123123
if (mc.player != null) {
124-
mc.player.commandUnsigned("/sel");
124+
mc.player.connection.sendUnsignedCommand("/sel");
125125
}
126126

127127
if (config.isClearAllOnKey()) {
@@ -144,7 +144,7 @@ private void onTick(final Minecraft mc) {
144144
this.helo(mc.getConnection());
145145
this.delayedHelo = FabricModWorldEditCUI.DELAYED_HELO_TICKS;
146146
if (mc.player != null && config.isPromiscuous()) {
147-
mc.player.commandUnsigned("we cui"); // Tricks WE to send the current selection
147+
mc.player.connection.sendUnsignedCommand("we cui"); // Tricks WE to send the current selection
148148
}
149149
}
150150

src/main/java/org/enginehub/worldeditcui/gui/CUIConfigPanel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected void init() {
6363
}
6464
done = this.addRenderableWidget(new AbstractWidget((this.width - BUTTON_WIDTH) / 2, this.height - (BUTTON_HEIGHT + 7), BUTTON_WIDTH, BUTTON_HEIGHT, CommonComponents.GUI_DONE) {
6565
@Override
66-
public void updateNarration(NarrationElementOutput builder) {
66+
protected void updateWidgetNarration(final NarrationElementOutput builder) {
6767
this.defaultButtonNarrationText(builder);
6868
}
6969

@@ -94,7 +94,7 @@ public void onClick(double mouseX, double mouseY) {
9494
} else if(value instanceof Boolean) {
9595
element = this.addRenderableWidget(new AbstractWidget(buttonX, y, 70, BUTTON_HEIGHT, ((Boolean) value ? TRUE: FALSE)) {
9696
@Override
97-
public void updateNarration(NarrationElementOutput builder) {
97+
protected void updateWidgetNarration(final NarrationElementOutput builder) {
9898
this.defaultButtonNarrationText(builder);
9999
}
100100

@@ -146,7 +146,7 @@ public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
146146
}
147147
this.configList.addEntry(new SettingsEntry(this.configList, (textTemp != null) ? textTemp : Component.literal(text), element, this.addRenderableWidget(new AbstractWidget(buttonX + 75, y, BUTTON_HEIGHT, BUTTON_HEIGHT, Component.empty()) {
148148
@Override
149-
public void updateNarration(NarrationElementOutput builder) {
149+
protected void updateWidgetNarration(final NarrationElementOutput builder) {
150150
this.defaultButtonNarrationText(builder);
151151
}
152152

src/main/java/org/enginehub/worldeditcui/gui/SettingsEntry.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public void render(PoseStack matrices, int index, int y, int x, int rowWidth, in
4848
}
4949

5050
// Widgets
51-
this.widgetButton.y = this.resetButton.y = y + 1;
51+
this.resetButton.setY(y + 1);
52+
this.widgetButton.setY(y + 1);
5253
this.widgetButton.render(matrices, mouseX, mouseY, delta);
5354
this.resetButton.render(matrices,mouseX, mouseY, delta);
5455
}

src/main/java/org/enginehub/worldeditcui/render/BufferBuilderRenderSink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import com.mojang.blaze3d.vertex.BufferBuilder;
55
import com.mojang.blaze3d.vertex.Tesselator;
66
import com.mojang.blaze3d.vertex.VertexFormat;
7-
import com.mojang.math.Vector3f;
87
import net.minecraft.client.renderer.ShaderInstance;
98
import org.jetbrains.annotations.Nullable;
9+
import org.joml.Vector3f;
1010
import org.lwjgl.opengl.GL11;
1111
import org.lwjgl.opengl.GL32;
1212

0 commit comments

Comments
 (0)