add newline in blockinfo of BeehiveAffected, move var initialization
This commit is contained in:
@@ -51,7 +51,7 @@ public class BlockBehaviorBeehiveAffected(Block block) : BlockBehavior(block)
|
|||||||
: " " + Lang.Get("orekiwoofsbeehives:blockinfo-as-a-plant", GetLocalizedPlantTypeText(isFlower, isCrop));
|
: " " + Lang.Get("orekiwoofsbeehives:blockinfo-as-a-plant", GetLocalizedPlantTypeText(isFlower, isCrop));
|
||||||
|
|
||||||
var inRangeText = Lang.Get("orekiwoofsbeehives:blockinfo-in-range-beehive", beehiveCount);
|
var inRangeText = Lang.Get("orekiwoofsbeehives:blockinfo-in-range-beehive", beehiveCount);
|
||||||
return inRangeText + growthOrPlantText;
|
return '\n' + inRangeText + growthOrPlantText;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string GetLocalizedPlantTypeText(bool isFlower, bool isCrop)
|
private static string GetLocalizedPlantTypeText(bool isFlower, bool isCrop)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class BlockEntityReusableBeehive : BlockEntityContainer, IModEntity
|
|||||||
|
|
||||||
private readonly Stopwatch stopwatch = new();
|
private readonly Stopwatch stopwatch = new();
|
||||||
private readonly StringBuilder infoStringBuilder = new();
|
private readonly StringBuilder infoStringBuilder = new();
|
||||||
private readonly InventoryGeneric inventory;
|
private readonly InventoryGeneric inventory = new(8, null, null);
|
||||||
private double lastUpdateTotalHours = 0;
|
private double lastUpdateTotalHours = 0;
|
||||||
private bool wasFullyScanned;
|
private bool wasFullyScanned;
|
||||||
private float? scanningProgress;
|
private float? scanningProgress;
|
||||||
@@ -54,11 +54,6 @@ public class BlockEntityReusableBeehive : BlockEntityContainer, IModEntity
|
|||||||
|
|
||||||
public Mod? Mod { get; private set; }
|
public Mod? Mod { get; private set; }
|
||||||
|
|
||||||
public BlockEntityReusableBeehive()
|
|
||||||
{
|
|
||||||
inventory = new InventoryGeneric(8, null, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsOpen { get; set; }
|
public bool IsOpen { get; set; }
|
||||||
|
|
||||||
public override void Initialize(ICoreAPI api)
|
public override void Initialize(ICoreAPI api)
|
||||||
|
|||||||
Reference in New Issue
Block a user