mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-06 17:31:09 +08:00
Fix #2665 tiny numbers not rounded in minified bbmodel
This commit is contained in:
parent
e7dd11e6d9
commit
2c0d8f11b3
@ -332,15 +332,11 @@ var codec = new Codec('project', {
|
||||
if (options.raw) {
|
||||
return model;
|
||||
} else if (options.compressed) {
|
||||
var json_string = JSON.stringify(model);
|
||||
var json_string = compileJSON(model, {small: true});
|
||||
var compressed = '<lz>'+LZUTF8.compress(json_string, {outputEncoding: 'StorageBinaryString'});
|
||||
return compressed;
|
||||
} else {
|
||||
if (Settings.get('minify_bbmodel') || options.minify) {
|
||||
return JSON.stringify(model);
|
||||
} else {
|
||||
return compileJSON(model);
|
||||
}
|
||||
return compileJSON(model, {small: Settings.get('minify_bbmodel') || options.minify});
|
||||
}
|
||||
},
|
||||
parse(model, path) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user