public override void OnBlockRemoved() { base.OnBlockRemoved(); if (labelrenderer != null) { labelrenderer.Unregister(); labelrenderer = null; } }
public override void OnBlockBroken() { base.OnBlockBroken(); labelrenderer?.Unregister(); }