Merge pull request #6 from TheCricket/1.7/dev

if you are shifting you go backwards in left click now
This commit is contained in:
tterrag1098 committed 2015-09-03 22:13:07 -04:00
commit 641055546d
1 file changed
+5 -1
@@ -44,6 +44,7 @@ public final class ChiselController {
switch (event.action) {
case LEFT_CLICK_BLOCK:
boolean shifting = event.entityPlayer.isSneaking();
int x = event.x,
y = event.y,
z = event.z;
@@ -85,7 +86,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;
}
}