Impossible to prevent bucket item use
#9
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?
Reply
Thanks given by:


Messages In This Thread
RE: Impossible to prevent bucket item use - by PureTryOut - 09-13-2016, 05:23 AM



Users browsing this thread: 1 Guest(s)