mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-04 06:31:23 +01:00
Make non-sign leaderboard-nodes non-fatal.
This commit is contained in:
parent
6663235a83
commit
0ea5c7a313
@ -60,8 +60,10 @@ public class Leaderboard
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(topLeft.getBlock().getState() instanceof Sign))
|
||||
throw new IllegalArgumentException("Block must be a sign!");
|
||||
if (!(topLeft.getBlock().getState() instanceof Sign)) {
|
||||
Messenger.warning("The leaderboard-node for arena '" + arena.configName() + "' does not point to a sign! Note that leaderboards must be in the same world as the arena itself!");
|
||||
return;
|
||||
}
|
||||
|
||||
this.topLeft = topLeft;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user