CommandHelper

CommandHelper

46.5k Downloads

Issue with dashes (builds 2944+)

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-3105 - Reported by PseudoKnight

I think the "-" commit broke some things. I got errors immediately when updating. Though I haven't done any testing yet, this is a simplification of what broke in my scripts:

bind(player_teleport, null, null, @event) {
 (@event['to'][0] - @event['from'][0]);
}

It's data directly from that event to a procedure that pretty much only subtracts one from the other. And the bizarre error: "CastException: Expecting a number, but received "0.5 -0.5" instead". Concating them?

Might be able to break it down to:

@array = array(0.1, 1.1);
(@array[0] - @array[1]);

I don't have time tonight, but will look into this soon if no one else does.

commented

Comment by Pieter12345

Ah, I know what's going on there. I'll go fix this.

commented

Comment by Pieter12345

Fixed in: #344