Fix rounding errors being imported into molang fields

This commit is contained in:
JannisX11 2025-01-16 23:29:25 +01:00
parent f1d3243f0f
commit 89bea015b1

View File

@ -412,7 +412,7 @@ var Merge = {
if (typeof source[index] == 'string') {
obj[index] = source[index];
} else if (typeof source[index] == 'number') {
obj[index] = source[index].toString();
obj[index] = Math.roundTo(source[index], 9).toString();
}
},
boolean(obj, source, index, validate) {