CommandHelper

CommandHelper

46.5k Downloads

get_yaw() can return stacktrace / NaN

LadyCailinBot opened this issue · 1 comments

commented

CMDHELPER-3150 - Reported by Алексей.Положенцев

if we have two existing worlds 'world' and 'world2':
get_yaw(array(x:1, y:2, z:3, world: 'world'), array(x:4, y:5, z:6, world: 'world2'))
will return a stacktrace: http://paste.thezomg.com/20061/67543651/

if we use it with two identical locations:
get_yaw(array(x:0, y:0, z:0, world: 'world'), array(x:0, y:0, z:0, world: 'world'))
it will return NaN

commented

Comment by PseudoKnight

Regarding the stacktrace. Should it ignore worlds or throw an exception?

Regarding the NaN. This seems an acceptable output, but would people prefer an exception?