Proper implementation of #6099 (untested)
This commit is contained in:
@@ -69,13 +69,8 @@ public class OverflowGate extends Block{
|
|||||||
}else if(bc && !ac){
|
}else if(bc && !ac){
|
||||||
to = b;
|
to = b;
|
||||||
}else{
|
}else{
|
||||||
if(rotation == 0){
|
to = (rotation & (1 << from)) == 0 ? a : b;
|
||||||
to = a;
|
if(flip) rotation ^= (1 << from);
|
||||||
if(flip) rotation =1;
|
|
||||||
}else{
|
|
||||||
to = b;
|
|
||||||
if(flip) rotation = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,13 +114,8 @@ public class Sorter extends Block{
|
|||||||
}else if(!bc){
|
}else if(!bc){
|
||||||
return null;
|
return null;
|
||||||
}else{
|
}else{
|
||||||
if(rotation == 0){
|
to = (rotation & (1 << dir)) == 0 ? a : b;
|
||||||
to = a;
|
if(flip) rotation ^= (1 << dir);
|
||||||
if(flip) this.rotation = (byte)1;
|
|
||||||
}else{
|
|
||||||
to = b;
|
|
||||||
if(flip) this.rotation = (byte)0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user