Reformat again

This commit is contained in:
dfsek
2020-11-06 15:45:07 -07:00
parent 4f40550465
commit a362ed47ce
45 changed files with 192 additions and 113 deletions

View File

@@ -10,7 +10,7 @@ import java.util.logging.Level;
public final class PaperUtil {
public static void checkPaper(JavaPlugin main) {
Bukkit.getScheduler().scheduleSyncDelayedTask(main, () -> {
if(! PaperLib.isPaper()) {
if(!PaperLib.isPaper()) {
LangUtil.log("use-paper", Level.WARNING);
}
}, 100L);

View File

@@ -17,13 +17,13 @@ public final class RotationUtil {
Vector2 copy = orig.clone();
switch(r) {
case CW_90:
copy.setX(orig.getZ()).setZ(- orig.getX());
copy.setX(orig.getZ()).setZ(-orig.getX());
break;
case CCW_90:
copy.setX(- orig.getZ()).setZ(orig.getX());
copy.setX(-orig.getZ()).setZ(orig.getX());
break;
case CW_180:
copy.multiply(- 1);
copy.multiply(-1);
break;
}
return copy;
@@ -184,7 +184,7 @@ public final class RotationUtil {
case NORTH_NORTH_WEST:
return 15;
default:
return - 1;
return -1;
}
}