Skip to content

Check if the block was actually placed - #2522

Closed
thelema1337 wants to merge 1 commit into
GrimAnticheat:2.0from
thelema1337:fix-rotationplace
Closed

thelema1337 wants to merge 1 commit into
GrimAnticheat:2.0from
thelema1337:fix-rotationplace

Conversation

@thelema1337

Copy link
Copy Markdown

This fixes a lot of false positives where you could just click on blocks without placing the block at all.

@SamB440 SamB440 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure what this does (how can you place fire?) but I think we should make some method both of these can call to check exemption for scaffolding and fire.

@thelema1337

Copy link
Copy Markdown
Author

@SamB440 At least the BlockPlace class returns StateTypes.FIRE if itemStack.getPlacedType() is null. I have no idea why it returns fire. But if you set something else (like AIR), there will be false positives when using a bucket of water. So, as they say, if it works, don't touch it.

@thelema1337 thelema1337 closed this by deleting the head repository Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants