-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Block interactions are not executed when sneaking #5193
Comments
This sounds like a bug in vanilla to me. |
That's what I also thought at first. But it's the same in Java Edition. And it's not limited to bone meal. It's the same case with "shovels and pathways" and "compass and lodestones" (although that's not implemented in PM anyway). I've dug a bit around this in Java Edition's source (I'm not that experienced with IDA and more familiar with Java). Both Java and PM have |
If this is correct, I'd also expect paintings, spawn eggs and other items to work while sneaking too. |
It does. While sneaking, you can also spawn mobs with spawn eggs or place e.g. either paintings or item frames. |
Happens thanks to this line. This is also causing players to be unable to interact with copper doors/trapdoors to wax/unwax them or remove oxidation (They need to be sneaking to do this) Change the line to if((!$player->isSneaking() || $item->isNull() || !$item instanceof ItemBlock) && $blockClicked->onInteract($item, $face, $clickVector, $player, $returnedItems)){ seems to fixe it. |
In PocketMine-MP/src/world/World.php Line 2177 in a396233
Fixing the other stuff like shovels on grass will be a bit more awkward though. |
Issue description
Steps to reproduce the issue
OS and versions
Tested on both
test.pmmp.io:19133
andtest.pmmp.io:19132
Plugins
---
Crashdump, backtrace or other files
---
The text was updated successfully, but these errors were encountered: