mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-10-03 10:33:29 -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 {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user