Fix being able to manually set fallback for a custom block above 65 by manually editing .json files, which would crash java client (Thanks cybertoon)

This commit is contained in:
UnknownShadow200 2020-03-12 23:20:27 +11:00
parent a1af75ff62
commit 26efc4af33

View File

@ -116,6 +116,9 @@ namespace MCGalaxy {
} else {
defs[block] = def;
}
// In case user manually edited fallback in the json file
def.FallBack = Math.Min(def.FallBack, Block.CpeMaxBlock);
}
} catch (Exception ex) {
Logger.LogError("Error Loading block defs from " + path, ex);