public override void GetBlockInfo(IPlayer forPlayer, StringBuilder sb) { if (Api.World.EntityDebugMode) { if (Centre == null) { sb.AppendLine("null centre"); return; } sb.AppendLine("centre at " + Centre); } if (Centre == null) { return; } BlockEntity be = this.Api.World?.BlockAccessor.GetBlockEntity(Centre); if (be == null) { sb.AppendLine("null be"); } be?.GetBlockInfo(forPlayer, sb); }
public override void GetBlockInfo(IPlayer forPlayer, StringBuilder sb) { if (Principal == null) { return; } BlockEntity be = Api.World.BlockAccessor.GetBlockEntity(Principal); if (be == null) { sb.AppendLine("null be"); } else { be.GetBlockInfo(forPlayer, sb); } }