Skip to content

Commit

Permalink
Fixed Direction.getRotation()
Browse files Browse the repository at this point in the history
  • Loading branch information
gottsch committed Aug 15, 2018
1 parent 3b21b09 commit 4a94abf
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion GottschCore1.12.2/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx3G

mod_name=GottschCore
package_group=someguyssoftware.gottschcore
mod_version=1.4.0
mod_version=1.5.0

mc_version=1.12.2
forge_version=14.23.4.2705
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class GottschCore extends AbstractMod {
// constants
public static final String MODID = "gottschcore";
protected static final String NAME = "GottschCore";
protected static final String VERSION = "1.4.0";
protected static final String VERSION = "1.5.0";
public static final String UPDATE_JSON_URL = "https://raw.githubusercontent.com/gottsch/gottsch-minecraft-GottschCore/master/GottschCore1.12.2/update.json";

// TODO [back-burner]add a message file (messages.json) to check from.... global message and mod specific messages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ public Direction rotate(Rotate r) {
*/
public Rotate getRotation(Direction direction) {
switch (direction) {
case NORTH:
case NORTH: // <-- destination
switch(this) {
case NORTH: return Rotate.NO_ROTATE;
case EAST: return Rotate.ROTATE_90;
case NORTH: return Rotate.NO_ROTATE; // <-- source
case EAST: return Rotate.ROTATE_270;
case SOUTH: return Rotate.ROTATE_180;
case WEST: return Rotate.ROTATE_270;
case WEST: return Rotate.ROTATE_90;
default: return Rotate.NO_ROTATE;
}
case EAST:
Expand All @@ -150,9 +150,9 @@ public Rotate getRotation(Direction direction) {
case SOUTH:
switch(this) {
case NORTH: return Rotate.ROTATE_180;
case EAST: return Rotate.ROTATE_270;
case EAST: return Rotate.ROTATE_90;
case SOUTH: return Rotate.NO_ROTATE;
case WEST: return Rotate.ROTATE_90;
case WEST: return Rotate.ROTATE_270;
default: return Rotate.NO_ROTATE;
}
case WEST:
Expand Down
2 changes: 1 addition & 1 deletion GottschCore1.12.2/src/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"modid": "gottschcore",
"name": "GottschCore",
"description": "Base API for all my mods.",
"version": "1.4.0",
"version": "1.5.0",
"mcversion": "1.12.2",
"url": "",
"updateUrl": "",
Expand Down
7 changes: 4 additions & 3 deletions GottschCore1.12.2/update.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"homepage": "http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2604013-gottschs-mods",
"promos": {
"1.12.2-latest": "1.4.0",
"1.12.2-recommended": "1.4.0"
"1.12.2-latest": "1.5.0",
"1.12.2-recommended": "1.5.0"
},
"1.12.2": {
"1.0.0": "-Initial release.",
Expand All @@ -13,6 +13,7 @@
"1.2.0": "-Added AbstractModContainerBlock, AbstractModTileEntity.\nAdded getUpateURL() to IMod.\n-Renamed getVerisionURL to getVersionURL in IMod.\n-Added readFromNBT() and writeToNBT() methods to ICoords/Coords class.\n-VersionChecker now first attempts to use the Forge update.json to track versions.",
"1.3.0": "-see changelog @ https://gist.github.com/gottsch/75a22a51a52d0fe8bf5f6711d4a65700",
"1.3.5": "-see changelog @ https://gist.github.com/gottsch/75a22a51a52d0fe8bf5f6711d4a65700",
"1.4.0": "-see changelog @ https://gist.github.com/gottsch/75a22a51a52d0fe8bf5f6711d4a65700"
"1.4.0": "-see changelog @ https://gist.github.com/gottsch/75a22a51a52d0fe8bf5f6711d4a65700",
"1.5.0": "-see changelog @ https://gist.github.com/gottsch/75a22a51a52d0fe8bf5f6711d4a65700"
}
}

0 comments on commit 4a94abf

Please sign in to comment.