09-13-2016, 05:23 AM
Yeah I just found that out, OnPlayerUsingItem gets called twice as well. If I LOG(town) then the first time it returns fine, the second time time will be a nil value. It seems the second time BlockX and BlockY both return -1 instead of the actual block that is being changed, meaning the query won't find anything, meaning it will return false at the first conditional statement.
Why exactly is it called twice? And how would I now prevent buckets from being placed like this?
Why exactly is it called twice? And how would I now prevent buckets from being placed like this?