mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-16 20:41:59 +01:00
Added argument check to setBlockSafety.
This commit is contained in:
parent
fa9191dd8f
commit
2a5edc4f91
@ -1234,6 +1234,9 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setBlockSafety(BlockSafety bs) {
|
public void setBlockSafety(BlockSafety bs) {
|
||||||
|
if (bs == null) {
|
||||||
|
throw new NullPointerException("block safety may not be null.");
|
||||||
|
}
|
||||||
this.blockSafety = bs;
|
this.blockSafety = bs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user