Skip to content

Commit 326a964

Browse files
committed
v1.5.2 hotfix
1 parent 324139b commit 326a964

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

ContainerAdapters/MagicStorageInterfaceAdapter.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public IEnumerable<Tuple<Item, object>> EnumerateItems(int x, int y)
6464

6565
foreach (var item in targetHeart.GetStoredItems())
6666
{
67-
yield return new Tuple<Item, object>(item, item.type);
67+
yield return new Tuple<Item, object>(item, item);
6868
}
6969
}
7070

@@ -74,8 +74,7 @@ public void TakeItem(int x, int y, object slot, int amount)
7474
if (targetHeart == null)
7575
return;
7676

77-
Item toWithdraw = new Item();
78-
toWithdraw.SetDefaults((int)slot);
77+
Item toWithdraw = ((Item)slot).Clone();
7978
toWithdraw.stack = amount;
8079

8180
targetHeart.TryWithdraw(toWithdraw);

build.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
author = DRKV
2-
version = 1.5.1
2+
version = 1.5.2
33
displayName = MechTransfer
44
includePDB = false
55
weakReferences = [email protected]

description.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@ v1.5
5555

5656
v1.5.1
5757
- Fixed outlet wire output
58-
- Added error handling
58+
- Added error handling
59+
60+
v1.5.2
61+
- Fixed magic storage item duplication with prefixed items

0 commit comments

Comments
 (0)