-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consume() called on manipulator with bound introspection module sometimes errors. #32
Comments
Lines 109 to 110 in 27af81f
I have a hunch that this needs to subtarget an EntityIdentifier instead, much like getPlayerContext does for getInventory itself: Lines 52 to 53 in 27af81f
But would need to be able to consistently reproduce it to know for sure if that's the problem |
I knew i was forgetting something sorry! I could swear i posted reproduction steps. Reproduction steps on singleplayer:
man = peripheral.find("manipulator")
inv = man.getInventory()
inv.consume(1) |
I think those are 2 separate issues? They might be related code wise but one involves item movement and other involves just .consume failing. |
I have noticed that in some cases (was not able to determine exact cause for this but i think it might be related to death or teleportation) when user tried to call consume on slot in inventory using bound introspection module in manipulator it errors with this message:
All other methods work correctly and transfer items around to and from inventory, only consume seems to be broken and it persist on quit/reconnect. Only way to fix this i found was removing and re-placing introspection module onto manipulator.
EDIT: Some additional testing leads me to believe that indeed teleprting might is one of ways to trigger this issue.EDIT2: I have did some more testing and it regullary triggers when i come back after not playing for some time. Considering that it is in offline chunkloaded chunk my current guess is that its caused by manipulator and bound introspection module getting loaded after server restart without bound player on server.
The text was updated successfully, but these errors were encountered: