mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-19 03:39:15 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c42e5f2a2 |
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
modGroup = com.gtnewhorizon
|
modGroup = com.gtnewhorizon
|
||||||
modVersion = 1.0.1
|
modVersion = 1.0.2
|
||||||
modBaseName = StructureLib
|
modBaseName = StructureLib
|
||||||
|
|
||||||
forgeVersion = 1.7.10-10.13.4.1614-1.7.10
|
forgeVersion = 1.7.10-10.13.4.1614-1.7.10
|
||||||
@@ -54,7 +54,7 @@ public interface IAlignment extends IAlignmentLimits,IAlignmentProvider {
|
|||||||
default boolean toolSetDirection(ForgeDirection direction){
|
default boolean toolSetDirection(ForgeDirection direction){
|
||||||
if(direction==null || direction==ForgeDirection.UNKNOWN){
|
if(direction==null || direction==ForgeDirection.UNKNOWN){
|
||||||
for (int i = 0,j=getDirection().ordinal()+1, valuesLength = Direction.VALUES.length; i < valuesLength; i++) {
|
for (int i = 0,j=getDirection().ordinal()+1, valuesLength = Direction.VALUES.length; i < valuesLength; i++) {
|
||||||
if(toolSetDirection(Direction.VALUES[j%valuesLength].getForgeDirection())){
|
if (toolSetDirection(Direction.VALUES[(j + i) % valuesLength].getForgeDirection())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -90,8 +90,8 @@ public interface IAlignment extends IAlignmentLimits,IAlignmentProvider {
|
|||||||
int flips = Flip.VALUES.length;
|
int flips = Flip.VALUES.length;
|
||||||
int rotations = Rotation.VALUES.length;
|
int rotations = Rotation.VALUES.length;
|
||||||
for (int ii = 0,jj=getFlip().ordinal(); ii < flips; ii++) {
|
for (int ii = 0,jj=getFlip().ordinal(); ii < flips; ii++) {
|
||||||
for (int i = 0,j=getRotation().ordinal()+1; i < rotations; i++) {
|
for (int i = 1, j = getRotation().ordinal(); i < rotations; i++) {
|
||||||
if(checkedSetExtendedFacing(ExtendedFacing.of(getDirection(),Rotation.VALUES[j%rotations],Flip.VALUES[jj%flips]))){
|
if (checkedSetExtendedFacing(ExtendedFacing.of(getDirection(), Rotation.VALUES[(j + i) % rotations], Flip.VALUES[(jj + ii) % flips]))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -112,8 +112,8 @@ public interface IAlignment extends IAlignmentLimits,IAlignmentProvider {
|
|||||||
|
|
||||||
default boolean toolSetFlip(Flip flip){
|
default boolean toolSetFlip(Flip flip){
|
||||||
if(flip==null){
|
if(flip==null){
|
||||||
for (int i = 0,j=getFlip().ordinal()+1, valuesLength = Flip.VALUES.length; i < valuesLength; i++) {
|
for (int i = 1, j = getFlip().ordinal(), valuesLength = Flip.VALUES.length; i < valuesLength; i++) {
|
||||||
if(toolSetFlip(Flip.VALUES[j%valuesLength])){
|
if (checkedSetFlip(Flip.VALUES[(j + i) % valuesLength])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -134,7 +134,7 @@ public interface IAlignment extends IAlignmentLimits,IAlignmentProvider {
|
|||||||
default boolean toolSetExtendedFacing(ExtendedFacing extendedFacing){
|
default boolean toolSetExtendedFacing(ExtendedFacing extendedFacing){
|
||||||
if(extendedFacing==null){
|
if(extendedFacing==null){
|
||||||
for (int i = 0,j=getExtendedFacing().ordinal()+1, valuesLength = ExtendedFacing.VALUES.length; i < valuesLength; i++) {
|
for (int i = 0,j=getExtendedFacing().ordinal()+1, valuesLength = ExtendedFacing.VALUES.length; i < valuesLength; i++) {
|
||||||
if(toolSetExtendedFacing(ExtendedFacing.VALUES[j%valuesLength])){
|
if (checkedSetExtendedFacing(ExtendedFacing.VALUES[(j + i)%valuesLength])){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user