Changed reference to tileentity