desht / ModularRouters

A Forge Mod for item routers with pluggable modules
18 stars 21 forks source link

Dupe on Modular router #39

Closed syrun97 closed 6 years ago

syrun97 commented 6 years ago

Minecraft Version

1.12.2

Forge Version

14.23.3.2679

Mod Version

1.12.2-3.1.4

Describe your problem, including steps to reproduce it

https://www.youtube.com/watch?v=bjFY7eGHyH4&feature=youtu.be Dupe Items when flinger/dropper module and vacuum module is installed in one router.

Any other comments?

it happend on sevtech age modpack.

desht commented 6 years ago

Thanks, I'll take a look ASAP but I'm away from any computers for the next couple of days..

desht commented 6 years ago

I can't reproduce this at all. The number of items in the router remains static, as I would expect. This is in my test instance, so it's possible some other mod in Sevtech is interfering. I'll try to test in Sevtech and see what happens there.

desht commented 6 years ago

OK, it happens in Sevtech but not in any of my test worlds. The Dropper/Flinger create the items entities in Sevtech, but the item doesn't get removed from the router's buffer.

I suspect whichever mod causes item entities to render flat on the ground is also somehow causing World#spawnEntity() to return false (probably intercepting the EntityJoinWorldEvent, which would stop the code from extracting the item from the buffer.

Looking at the spawnEntity() code, I can probably safely ignore the return value, and always extract the item from the buffer, which would resolve this problem.

desht commented 6 years ago

Fixed in 3.1.5 release.