mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-08 09:27:38 +01:00
Uses replace instead of replaceAll as 1st param is not regex
This commit is contained in:
parent
ba529b78ac
commit
664040837d
@ -221,7 +221,7 @@ public class Util {
|
||||
*/
|
||||
@Nullable
|
||||
public static World getWorld(@Nullable World world) {
|
||||
return world == null ? null : world.getEnvironment().equals(Environment.NORMAL) ? world : Bukkit.getWorld(world.getName().replaceAll(NETHER, "").replaceAll(THE_END, ""));
|
||||
return world == null ? null : world.getEnvironment().equals(Environment.NORMAL) ? world : Bukkit.getWorld(world.getName().replace(NETHER, "").replace(THE_END, ""));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user