Uses replace instead of replaceAll as 1st param is not regex

This commit is contained in:
tastybento 2019-11-08 17:06:20 -08:00
parent ba529b78ac
commit 664040837d

View File

@ -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, ""));
}
/**