Psi

Psi

45M Downloads

Save vector only saves the integer part of a vector

dennisheperol opened this issue ยท 1 comments

commented

When you use the save-vector trick this will only save the integer part of a vector (not rounding)
(10.98 ; 11.56 ; 3.1 ) -> (10 ; 11 ; 3 )

What you'd expect is
(10.98 ; 11.56 ; 3.1 ) -> (10.98 ; 11.56 ; 3.1 )

in-game footage: http://imgur.com/a/ODx5w

commented

Ah I think I found the issue.
In Psi/src/main/java/vazkii/psi/common/item/ItemCAD.java there's the following code in getStoredVector()

double x = cmp.getInteger(TAG_X);
double y = cmp.getInteger(TAG_Y);
double z = cmp.getInteger(TAG_Z);

This should probably be replaced with cmp.getDouble(...);
I am not experienced in creating/compiling MC mods so I didn't test it, there might be other errors, probably not though.