Clarify Player#breakBlock only works for blocks in the same world

This commit is contained in:
md_5 2021-06-13 08:28:21 +10:00
parent 5dcdd48e52
commit 2ce691d830
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -413,6 +413,8 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* <p>
* Additionally, a {@link BlockDropItemEvent} is called for the items
* dropped by this method (if successful).
* <p>
* The block must be in the same world as the player.
*
* @param block the block to break
*