Merge pull request #181 from micdoodle8/patch-1

Fixed WorldProvider.setDimension() setting the wrong variable.
This commit is contained in:
LexManos 2012-09-23 16:33:36 -07:00
commit 0d0ba4b2d5

View file

@ -33,7 +33,6 @@
+
+
+ /*======================================= Forge Start =========================================*/
+ private int dimensionID = 0;
+
+ /**
+ * Sets the providers current dimension ID, used in default getSaveFolder()
@ -43,7 +42,7 @@
+ */
+ public void setDimension(int dim)
+ {
+ this.dimensionID = dim;
+ this.dimensionId = dim;
+ }
+
+ /**
@ -53,7 +52,7 @@
+ */
+ public String getSaveFolder()
+ {
+ return (dimensionID == 0 ? null : "DIM" + dimensionID);
+ return (dimensionId == 0 ? null : "DIM" + dimensionId);
+ }
+
+ /**