if you are shifting you go backwards in left click now

This commit is contained in:
Cricket committed 2015-09-03 18:09:21 -07:00
1 parent 91716cc506
commit 493ac8f593
1 file changed
+7 -1
@@ -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;
}
}