Archived
0

корректировка Unloaded exception

This commit is contained in:
2018-08-16 14:27:58 +03:00
parent b4f2b72e3a
commit 39d7872d6a
4 changed files with 2 additions and 19 deletions

View File

@@ -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();
} }

View File

@@ -1,12 +0,0 @@
package mc.core.exception;
public abstract class McCoreUncheckedException extends RuntimeException {
public McCoreUncheckedException() {
super();
}
public McCoreUncheckedException(String msg) {
super(msg);
}
}

View File

@@ -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);
} }

View File

@@ -1,4 +0,0 @@
package mc.world.flat;
public class WorldUnloadedException extends RuntimeException {
}