From 493ac8f593c0c45dd74c577d825cecf6813c9ccb Mon Sep 17 00:00:00 2001 From: Cricket Date: Thu, 3 Sep 2015 18:09:21 -0700 Subject: [PATCH] if you are shifting you go backwards in left click now --- .../java/team/chisel/item/chisel/ChiselController.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/team/chisel/item/chisel/ChiselController.java b/src/main/java/team/chisel/item/chisel/ChiselController.java index b4e586b4..9161acc3 100644 --- a/src/main/java/team/chisel/item/chisel/ChiselController.java +++ b/src/main/java/team/chisel/item/chisel/ChiselController.java @@ -44,6 +44,9 @@ public final class ChiselController { switch (event.action) { case LEFT_CLICK_BLOCK: + boolean shifting = false; + if(event.entityPlayer.isSneaking()) + shifting = true; int x = event.x, y = event.y, z = event.z; @@ -85,7 +88,10 @@ public final class ChiselController { for (int i = 0; i < variations.length; i++) { ICarvingVariation v = variations[i]; if (v.getBlock() == block && v.getBlockMeta() == metadata) { - idx = (i + 1) % variations.length; // move to the next in the group + if(shifting) + idx = (i - 1) % variations.length; // move to the previous in the group + else + idx = (i + 1) % variations.length; // move to the next in the group break; } }