Private
Public Access
1
0

add newline in blockinfo of BeehiveAffected, move var initialization

This commit is contained in:
2026-05-25 06:57:19 +02:00
parent afdf3425b0
commit 6813ac84d0
2 changed files with 2 additions and 7 deletions

View File

@@ -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)

View File

@@ -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)