From 2b832c18aadadb3b1300d1c378d1a335dd899383 Mon Sep 17 00:00:00 2001 From: gnembon Date: Sat, 18 Jan 2020 19:01:20 -0400 Subject: [PATCH] camera app fixes --- src/main/resources/assets/carpet/scripts/camera.sc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/assets/carpet/scripts/camera.sc b/src/main/resources/assets/carpet/scripts/camera.sc index d297ef70..57bf59f2 100644 --- a/src/main/resources/assets/carpet/scripts/camera.sc +++ b/src/main/resources/assets/carpet/scripts/camera.sc @@ -615,7 +615,8 @@ save_as(file) -> point_nbt = nbt('{}'); point_nbt:'duration' = _:1; point_nbt:'type' = _:2; - for(_:0, put(point_nbt:'pos',_,_i)); + for(_:0, put(point_nbt:'pos',str('%.6fd',_),_i)); // need to print to float string + //otherwise mojang will interpret 0.0d as 0i and fail to insert put(path_nbt:'points', point_nbt, _i); ); store_app_data(path_nbt, file);