Open CDFN opened 3 years ago
Please follow the issue template, it's actually rather important if you want to get dev attention to fix your issue.
Edit this issue with the required details / template, and I'll reopen and hide this comment.
@ImMorpheus Done 👌 Sorry for not following the template, I was creating issue in SpongeAPI and I think templates aren't configured there 👀
I was able to reproduce the dropped items part on commit 02135c2a9b6d824725a44813c819de705b6242b9 using just the onItemMove
listener, although I can't reproduce the shift-clicking bug anymore. (EDIT: The same code does reproduce the bug on the older build RC378, so I'll declare that part of the issue fixed.)
The cause of the dropped items bug seems to that API 8 no longer waits to spawn entities until the current phase completes. Instead, it spawns them immediately and relies on the phase to despawn them. (So putting a call to processSpawnedEntities
only when the event is not cancelled doesn't prevent them from spawning.)
Ah yes, I was beginning to wonder whether there'd be some conflict of organization here, It's difficult to say what could be the better solution. I may have to have a think on this.
I am currently running
Issue Description Today I encountered weird issue with ChangeInventoryEvent. Hard to explain what happens so I made short video showing problem: https://youtu.be/AV9kfiCUt7I Basically items are duping when moving them around in inventory using SHIFT+LMB. I was dropping them out using CTRL+Q. Normal clicking LMB in inventory moves items either. It started happening after adding listener for ChangeInventoryEvent.
Code: