We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d2ed0 commit 3b37dc8Copy full SHA for 3b37dc8
src/main/java/com/example/addon/modules/ModuleExample.java
@@ -48,13 +48,13 @@ public ModuleExample() {
48
49
/**
50
* Example event handling method.
51
- * Requires {@link AddonTemplate#getPackage()} to be setup correctly, will fail silently otherwise.
+ * Requires {@link AddonTemplate#getPackage()} to be setup correctly, otherwise the game will crash whenever the module is enabled.
52
*/
53
@EventHandler
54
private void onRender3d(Render3DEvent event) {
55
// Create & stretch the marker object
56
Box marker = new Box(BlockPos.ORIGIN);
57
- marker.stretch(
+ marker = marker.stretch(
58
scale.get() * marker.getLengthX(),
59
scale.get() * marker.getLengthY(),
60
scale.get() * marker.getLengthZ()
0 commit comments