CreateMod/src/main/java/com/simibubi/create/content/schematics/client/tools/MoveVerticalTool.java
simibubi 2e3c906ce0 Create in the far lands
- Fixed couplings, schematics and in-world overlays not rendering correctly at coordinates far from the origin
2023-05-08 13:05:16 +02:00

17 lines
380 B
Java

package com.simibubi.create.content.schematics.client.tools;
import net.minecraft.util.Mth;
public class MoveVerticalTool extends PlacementToolBase {
@Override
public boolean handleMouseWheel(double delta) {
if (schematicHandler.isDeployed()) {
schematicHandler.getTransformation().move(0, Mth.sign(delta), 0);
schematicHandler.markDirty();
}
return true;
}
}