remove MarkDirty in IsOpen setter
This commit is contained in:
12
.timetracker
12
.timetracker
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"total": 605357,
|
||||
"total": 606745,
|
||||
"sessions": [
|
||||
{
|
||||
"begin": "2026-01-09T17:26:02+01:00",
|
||||
@@ -1365,6 +1365,16 @@
|
||||
"begin": "2026-03-22T03:01:07+01:00",
|
||||
"end": "2026-03-22T03:51:14+01:00",
|
||||
"duration": 3006
|
||||
},
|
||||
{
|
||||
"begin": "2026-03-25T01:39:33+01:00",
|
||||
"end": "2026-03-25T01:59:34+01:00",
|
||||
"duration": 1201
|
||||
},
|
||||
{
|
||||
"begin": "2026-03-27T22:58:21+01:00",
|
||||
"end": "2026-03-27T23:01:28+01:00",
|
||||
"duration": 187
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -22,7 +22,6 @@ public class BlockEntityReusableBeehive : BlockEntityContainer
|
||||
|
||||
private readonly StringBuilder infoStringBuilder = new();
|
||||
private readonly InventoryGeneric inventory;
|
||||
private bool isOpen;
|
||||
private double lastUpdateTotalHours = 0;
|
||||
private bool wasFullyScanned;
|
||||
private float? scanningProgress;
|
||||
@@ -56,19 +55,7 @@ public class BlockEntityReusableBeehive : BlockEntityContainer
|
||||
inventory = new InventoryGeneric(8, null, null);
|
||||
}
|
||||
|
||||
public bool IsOpen
|
||||
{
|
||||
get => isOpen;
|
||||
set
|
||||
{
|
||||
if (isOpen == value)
|
||||
return;
|
||||
|
||||
isOpen = value;
|
||||
if (Api?.World != null)
|
||||
Api.World.BlockAccessor.MarkBlockDirty(Pos);
|
||||
}
|
||||
}
|
||||
public bool IsOpen { get; set; }
|
||||
|
||||
public override void Initialize(ICoreAPI api)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user