this.chunks.setBlock(addBlockAction.x,
addBlockAction.y, addBlockAction.z,
original, tmp, tmp2, null);
else {
if (thing instanceof InventoryOwner) {
InventoryOwner inventoryOwner = (InventoryOwner) thing;
inventoryOwner.rmBlock(addBlockAction.block);
}
}
Resources.vector3dResourcePool.recycle(offset);
}
}
} else if (action instanceof RemoveBlock) {
RemoveBlock rmBlockAction = (RemoveBlock) action;
Block b = this.chunks.getBlock(rmBlockAction.x, rmBlockAction.y, rmBlockAction.z, tmp, (Chunk)null);
if (b.getHealth() < 0) {
this.chunks.setBlock(rmBlockAction.x, rmBlockAction.y, rmBlockAction.z, BlockEmpty.Make(0), tmp, tmp2, null);
if (thing instanceof InventoryOwner) {
InventoryOwner inventoryOwner = (InventoryOwner) thing;
inventoryOwner.addBlock(b);
}
} else {
Block newB = BlockTools.updateHealth(b, b.getHealth()-1);
this.chunks.setBlock(rmBlockAction.x, rmBlockAction.y, rmBlockAction.z, newB, tmp, tmp2, null);
}