Skip to content

Commit 3b37dc8

Browse files
Big-Iron-CheemsMineGame159
authored andcommitted
Fix marker scale
1 parent c5d2ed0 commit 3b37dc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/example/addon/modules/ModuleExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ public ModuleExample() {
4848

4949
/**
5050
* Example event handling method.
51-
* Requires {@link AddonTemplate#getPackage()} to be setup correctly, will fail silently otherwise.
51+
* Requires {@link AddonTemplate#getPackage()} to be setup correctly, otherwise the game will crash whenever the module is enabled.
5252
*/
5353
@EventHandler
5454
private void onRender3d(Render3DEvent event) {
5555
// Create & stretch the marker object
5656
Box marker = new Box(BlockPos.ORIGIN);
57-
marker.stretch(
57+
marker = marker.stretch(
5858
scale.get() * marker.getLengthX(),
5959
scale.get() * marker.getLengthY(),
6060
scale.get() * marker.getLengthZ()

0 commit comments

Comments
 (0)