mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 00:07:37 +00:00
if you are shifting you go backwards in left click now
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user