9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 18:49:06 +00:00

Merge pull request #540 from CocoTheOwner/DimNameWhenNull

This commit is contained in:
Dan
2021-08-14 13:05:58 -04:00
committed by GitHub

View File

@@ -457,6 +457,10 @@ public class Iris extends VolmitPlugin implements Listener {
if (d == null) {
Iris.warn("Unable to find dimension type " + id + " Looking for online packs...");
d = IrisData.loadAnyDimension(dimension);
if (dimension == null) {
Iris.warn("Unable to find dimension type \"" + dimensionName + "\". Looking for online packs...");
Iris.proj.downloadSearch(new VolmitSender(Bukkit.getConsoleSender()), dimensionName, true);
dimension = IrisData.loadAnyDimension(dimensionName);
if (d == null) {
throw new RuntimeException("Can't find dimension " + dimension + "!");