make NoTransferException public and unchecked
This commit is contained in:
parent
cda795e43e
commit
832ec7ed86
|
|
@ -379,7 +379,7 @@ public abstract class DataStore
|
||||||
|
|
||||||
abstract void saveGroupBonusBlocks(String groupName, int amount);
|
abstract void saveGroupBonusBlocks(String groupName, int amount);
|
||||||
|
|
||||||
class NoTransferException extends Exception
|
public class NoTransferException extends RuntimeException
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -388,7 +388,7 @@ public abstract class DataStore
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
synchronized public void changeClaimOwner(Claim claim, UUID newOwnerID) throws NoTransferException
|
synchronized public void changeClaimOwner(Claim claim, UUID newOwnerID)
|
||||||
{
|
{
|
||||||
//if it's a subdivision, throw an exception
|
//if it's a subdivision, throw an exception
|
||||||
if(claim.parent != null)
|
if(claim.parent != null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user