Added argument check to setBlockSafety.

This commit is contained in:
Jeremy Wood 2012-12-27 16:02:46 -05:00
parent fa9191dd8f
commit 2a5edc4f91
1 changed files with 3 additions and 0 deletions

View File

@ -1234,6 +1234,9 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
*/
@Override
public void setBlockSafety(BlockSafety bs) {
if (bs == null) {
throw new NullPointerException("block safety may not be null.");
}
this.blockSafety = bs;
}