mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fix tree related crashes due to lazy BlockState updating
This commit is contained in:
1 parent
d2c2630307
commit
b58808d54d
1 file changed
+2
-4
@@ -140,14 +140,12 @@ public class CraftBlockState implements BlockState {
|
||||
Block block = getBlock();
|
||||
|
||||
if (block.getType() != getType()) {
|
||||
if (force) {
|
||||
block.setTypeId(getTypeId(), applyPhysics);
|
||||
} else {
|
||||
if (!force) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
block.setData(getRawData(), applyPhysics);
|
||||
block.setTypeIdAndData(getTypeId(), getRawData(), applyPhysics);
|
||||
world.getHandle().notify(new BlockPosition(x, y, z));
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user