mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 19:52:55 +01:00
Changed Block.setTypeID() to return a boolean indicating whether the block was changed (as provided by Minecraft).
This commit is contained in:
parent
eb4b30185f
commit
e83d9f676d
1 changed files with 3 additions and 2 deletions
|
@ -117,10 +117,11 @@ public class CraftBlock implements Block {
|
|||
* Sets the type-ID of this block
|
||||
*
|
||||
* @param type Type-ID to change this block to
|
||||
* @return whether the block was changed
|
||||
*/
|
||||
public void setTypeID(final int type) {
|
||||
public boolean setTypeID(final int type) {
|
||||
this.type = type;
|
||||
world.getHandle().d(x, y, z, type);
|
||||
return world.getHandle().d(x, y, z, type);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue