From 6813ac84d0f0c3735a90f2fc309f5a6086ecd86c Mon Sep 17 00:00:00 2001 From: OrekiWoof Date: Mon, 25 May 2026 06:57:19 +0200 Subject: [PATCH] add newline in blockinfo of BeehiveAffected, move var initialization --- .../Behaviors/BlockBehaviorBeehiveAffected.cs | 2 +- .../BlockEntities/BlockEntityReusableBeehive.cs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/OrekiWoofsBeehives/Behaviors/BlockBehaviorBeehiveAffected.cs b/OrekiWoofsBeehives/Behaviors/BlockBehaviorBeehiveAffected.cs index 129b985..c80e818 100644 --- a/OrekiWoofsBeehives/Behaviors/BlockBehaviorBeehiveAffected.cs +++ b/OrekiWoofsBeehives/Behaviors/BlockBehaviorBeehiveAffected.cs @@ -51,7 +51,7 @@ public class BlockBehaviorBeehiveAffected(Block block) : BlockBehavior(block) : " " + Lang.Get("orekiwoofsbeehives:blockinfo-as-a-plant", GetLocalizedPlantTypeText(isFlower, isCrop)); 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) diff --git a/OrekiWoofsBeehives/BlockEntities/BlockEntityReusableBeehive.cs b/OrekiWoofsBeehives/BlockEntities/BlockEntityReusableBeehive.cs index 0330211..52e83c6 100644 --- a/OrekiWoofsBeehives/BlockEntities/BlockEntityReusableBeehive.cs +++ b/OrekiWoofsBeehives/BlockEntities/BlockEntityReusableBeehive.cs @@ -22,7 +22,7 @@ public class BlockEntityReusableBeehive : BlockEntityContainer, IModEntity private readonly Stopwatch stopwatch = new(); private readonly StringBuilder infoStringBuilder = new(); - private readonly InventoryGeneric inventory; + private readonly InventoryGeneric inventory = new(8, null, null); private double lastUpdateTotalHours = 0; private bool wasFullyScanned; private float? scanningProgress; @@ -54,11 +54,6 @@ public class BlockEntityReusableBeehive : BlockEntityContainer, IModEntity public Mod? Mod { get; private set; } - public BlockEntityReusableBeehive() - { - inventory = new InventoryGeneric(8, null, null); - } - public bool IsOpen { get; set; } public override void Initialize(ICoreAPI api)