Skip to content

Commit

Permalink
v1.5.2 hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
DRKV333 committed Jan 29, 2018
1 parent 324139b commit 326a964
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 2 additions & 3 deletions ContainerAdapters/MagicStorageInterfaceAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public IEnumerable<Tuple<Item, object>> EnumerateItems(int x, int y)

foreach (var item in targetHeart.GetStoredItems())
{
yield return new Tuple<Item, object>(item, item.type);
yield return new Tuple<Item, object>(item, item);
}
}

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

Item toWithdraw = new Item();
toWithdraw.SetDefaults((int)slot);
Item toWithdraw = ((Item)slot).Clone();
toWithdraw.stack = amount;

targetHeart.TryWithdraw(toWithdraw);
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = DRKV
version = 1.5.1
version = 1.5.2
displayName = MechTransfer
includePDB = false
weakReferences = [email protected]
Expand Down
5 changes: 4 additions & 1 deletion description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@ v1.5

v1.5.1
- Fixed outlet wire output
- Added error handling
- Added error handling

v1.5.2
- Fixed magic storage item duplication with prefixed items

0 comments on commit 326a964

Please sign in to comment.