Skip to content

Commit

Permalink
Fix marker scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Big-Iron-Cheems authored and MineGame159 committed Jan 27, 2025
1 parent c5d2ed0 commit 3b37dc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/example/addon/modules/ModuleExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ public ModuleExample() {

/**
* Example event handling method.
* 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.
*/
@EventHandler
private void onRender3d(Render3DEvent event) {
// Create & stretch the marker object
Box marker = new Box(BlockPos.ORIGIN);
marker.stretch(
marker = marker.stretch(
scale.get() * marker.getLengthX(),
scale.get() * marker.getLengthY(),
scale.get() * marker.getLengthZ()
Expand Down

0 comments on commit 3b37dc8

Please sign in to comment.