geforkt von Mirrors/Paper
Fix tree related crashes due to lazy BlockState updating
Dieser Commit ist enthalten in:
Ursprung
d2c2630307
Commit
b58808d54d
@ -140,14 +140,12 @@ public class CraftBlockState implements BlockState {
|
|||||||
Block block = getBlock();
|
Block block = getBlock();
|
||||||
|
|
||||||
if (block.getType() != getType()) {
|
if (block.getType() != getType()) {
|
||||||
if (force) {
|
if (!force) {
|
||||||
block.setTypeId(getTypeId(), applyPhysics);
|
|
||||||
} else {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
block.setData(getRawData(), applyPhysics);
|
block.setTypeIdAndData(getTypeId(), getRawData(), applyPhysics);
|
||||||
world.getHandle().notify(new BlockPosition(x, y, z));
|
world.getHandle().notify(new BlockPosition(x, y, z));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren