корректировка Unloaded exception
This commit is contained in:
@@ -39,7 +39,7 @@ public class Location implements Cloneable {
|
|||||||
if (refWorld == null) {
|
if (refWorld == null) {
|
||||||
return null;
|
return null;
|
||||||
} else if (refWorld.get() == null) {
|
} else if (refWorld.get() == null) {
|
||||||
throw new ResourceUnloadedException("You're trying to get unloaded world");
|
throw new ResourceUnloadedException("World unloaded");
|
||||||
} else {
|
} else {
|
||||||
return refWorld.get();
|
return refWorld.get();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
package mc.core.exception;
|
|
||||||
|
|
||||||
public abstract class McCoreUncheckedException extends RuntimeException {
|
|
||||||
|
|
||||||
public McCoreUncheckedException() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public McCoreUncheckedException(String msg) {
|
|
||||||
super(msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
package mc.core.exception;
|
package mc.core.exception;
|
||||||
|
|
||||||
public class ResourceUnloadedException extends McCoreUncheckedException {
|
public class ResourceUnloadedException extends RuntimeException {
|
||||||
|
|
||||||
public ResourceUnloadedException(String msg) {
|
public ResourceUnloadedException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
package mc.world.flat;
|
|
||||||
|
|
||||||
public class WorldUnloadedException extends RuntimeException {
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user