BlockProt

BlockProt

17.2k Downloads

[Bug]: Item lost

Shiningdark0930 opened this issue ยท 6 comments

commented

Version of BlockProt

paper 1.2.0

Description of the bug

When a hopper with permissions enabled is placed above a block with permissions disabled, items disappear during the process of moving downward through the hopper.

Steps to reproduce

When a hopper with permissions enabled is placed above a block with permissions disabled, items disappear during the process of moving downward through the hopper.

Additional context

No response

commented

Is there anything showing up in the server console? Any errors? Also could you maybe update the plugin to the latest version to eliminate any other issues?

commented

I have the same issue. I just upgraded to PaperMC 1.21.1 Build 41. I'm using Blockprot 1.2.2. I tried to create some auto crafters that are fed from hoppers. When I put the first lot of items in the hopper, the items disappear immediately, but nothing is coming out of the crafter. When I add more items to the hopper, they just stay in the hopper and don't go into the crafter. When I unlock the hopper, everything works fine. I also tried to add the crafter to the lockable title entities in the config file, but I still can't lock the crafter.

commented

@gaborszabo10 Do you get any output in the console? In the original revision for 1.21 I had some issues with items disappearing with Crafters, which turned out to be an issue with Spigot itself, which I reported & got fixed.

Could any of you please show me some build with which I could reproduce this issue so I could debug this locally? I need more detailed information before I can figure this out.

commented

I just found the simplest way to reproduce the issue. By default you can't lock the crafter, unless you add it to the config. And you have to have your hopper locked while the crafter is unlocked. Place one crafter and then a hopper above it. The first stack of items will disappear from the hopper, only leaving 1 item in there. All further stacks you place will remain. If you break the hopper and put it back, it will do it again. I double checked and I definitely don't get anything in the server logs. I don't have debugging enabled though, only standard logging.

commented

I found a workaround. I added the crafter to the lockable blocks list in config and removed it from the lockable tile entities. So now my crafters are locked as well as my hoppers and it is all working.
I checked and I couldn't see anything in the server logs when I was losing items.
You can try any of the auto crafter builds. I was trying the simplest ones that were compacting. I wanted to get my bone meal to bone blocks. I tried multiple auto crafter builds and the issue was the same with all of them. The first stack of items I put in the hopper just disappeared as if they were sucked out and dropped into the crafter, but I couldn't find them anywhere and the crafter was still empty. All further stacks I placed afterwards just stayed in the hopper. I could reproduce it multiple times, by breaking and replacing the hopper.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.