mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-21 21:02:24 +00:00
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:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user