mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-10-04 11:08:38 -04:00
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:
parent
a1af75ff62
commit
26efc4af33
@ -116,6 +116,9 @@ namespace MCGalaxy {
|
|||||||
} else {
|
} else {
|
||||||
defs[block] = def;
|
defs[block] = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In case user manually edited fallback in the json file
|
||||||
|
def.FallBack = Math.Min(def.FallBack, Block.CpeMaxBlock);
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Logger.LogError("Error Loading block defs from " + path, ex);
|
Logger.LogError("Error Loading block defs from " + path, ex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user