- Joined
- Dec 10, 2014
- Messages
- 3,255
- Thread Author
- #1
Code:
SpriteItem arrows = Inventory.getItems(Fletching.Arrow.getNames()).first();
if(arrows != null)
arrows.interact("Wield");
This freezes my client and I have to kill the VM, I am checking whether the inventory contains any valid arrows or not before this code and it's working fine.
Same result when using both .interact and .click
Gamepack (f0041439)
Edit: Interaction is working fine for another script of mine, maybe it's because the above code was inside a MessageListener?
Last edited: