Mojira Archive
BDS-15536

Please modify all BlockLegacy::mayPlace to BlockSource::mayPlace.

I think in the right situation, all actions that destroy blocks should be handled by BlockSource::mayPlace, but some use BlockLegacy::mayPlace. And the latter did not return the Actor pointer, which caused me trouble to write plug-ins. In fact, BlockSource::mayPlace should be used for all destructive behaviors. Please modify it, for BDS, thank you.

Attachments2

A.png
A.png

rbw

B.png
B.png

rbw

Comments1

Thank you for your report!
However, this issue has been closed as Invalid.

This is more of a feature request or suggestion. For suggestions, please visit the Minecraft Feedback Site or choose a link below.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

History2

[Bot] Arisa

Changed description:

I think in the right situation, all actions that destroy blocks should be handled by BlockSource::mayPlace, but some use BlockLegacy::mayPlace. And the latter did not return the Actor pointer, which caused me trouble to write plug-ins. In fact, BlockSource::mayPlace should be used for all destructive behaviors. Please modify it, for BDS, thank you.

0

I think in the right situation, all actions that destroy blocks should be handled by BlockSource::mayPlace, but some use BlockLegacy::mayPlace. And the latter did not return the Actor pointer, which caused me trouble to write plug-ins. In fact, BlockSource::mayPlace should be used for all destructive behaviors. Please modify it, for BDS, thank you.

0

Maciej Piornik

Resolution: UnresolvedInvalid

Invalid
rbw
6
5
Unconfirmed
1.17.30