mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-01 07:03:26 +01:00
Merge branch 'develop' into async-paste2
This commit is contained in:
commit
cf0fdf45b9
@ -155,7 +155,11 @@ public class IslandWorldManager {
|
|||||||
* @return world settings, or null if world is unknown
|
* @return world settings, or null if world is unknown
|
||||||
*/
|
*/
|
||||||
public WorldSettings getWorldSettings(World world) {
|
public WorldSettings getWorldSettings(World world) {
|
||||||
|
if (gameModes.containsKey(Util.getWorld(world))) {
|
||||||
return gameModes.get(Util.getWorld(world)).getWorldSettings();
|
return gameModes.get(Util.getWorld(world)).getWorldSettings();
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user