Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Changed Block.setTypeID() to return a boolean indicating whether the block was changed (as provided by Minecraft).
Dieser Commit ist enthalten in:
Ursprung
eb4b30185f
Commit
e83d9f676d
@ -117,10 +117,11 @@ public class CraftBlock implements Block {
|
|||||||
* Sets the type-ID of this block
|
* Sets the type-ID of this block
|
||||||
*
|
*
|
||||||
* @param type Type-ID to change this block to
|
* @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;
|
this.type = type;
|
||||||
world.getHandle().d(x, y, z, type);
|
return world.getHandle().d(x, y, z, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren