#793: Don't unnecessarily toString block in CraftBlockEntityState constructor
This commit is contained in:
parent
c631fe5579
commit
e5cb519d6a
@ -24,7 +24,7 @@ public class CraftBlockEntityState<T extends TileEntity> extends CraftBlockState
|
|||||||
// get tile entity from block:
|
// get tile entity from block:
|
||||||
CraftWorld world = (CraftWorld) this.getWorld();
|
CraftWorld world = (CraftWorld) this.getWorld();
|
||||||
this.tileEntity = tileEntityClass.cast(world.getHandle().getTileEntity(this.getPosition()));
|
this.tileEntity = tileEntityClass.cast(world.getHandle().getTileEntity(this.getPosition()));
|
||||||
Preconditions.checkState(this.tileEntity != null, "Tile is null, asynchronous access? " + block);
|
Preconditions.checkState(this.tileEntity != null, "Tile is null, asynchronous access? %s", block);
|
||||||
|
|
||||||
// copy tile entity data:
|
// copy tile entity data:
|
||||||
this.snapshot = this.createSnapshot(tileEntity);
|
this.snapshot = this.createSnapshot(tileEntity);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user