public override void OnBlockRemoved() { base.OnBlockRemoved(); if (renderer != null) { renderer.Dispose(); renderer = null; } ambientSound?.Dispose(); }
public override void OnBlockUnloaded() { base.OnBlockUnloaded(); renderer?.Dispose(); }
public override void OnBlockRemoved() { base.OnBlockRemoved(); if (renderer != null) { renderer.Dispose(); renderer = null; } ambientSound?.Dispose(); }
public override void OnBlockUnloaded() { base.OnBlockUnloaded(); renderer?.Dispose(); }