fix: storage hearts now work while holding vanilla items
This commit is contained in:
parent
5694035da3
commit
d001727c2d
@ -13,9 +13,7 @@ namespace MagicStorageVoidBag.Hooks {
|
|||||||
Player player = Main.LocalPlayer;
|
Player player = Main.LocalPlayer;
|
||||||
Item item = player.HeldItem;
|
Item item = player.HeldItem;
|
||||||
|
|
||||||
if (item.ModItem == null) return false;
|
if (!item.IsAir && item.ModItem is Locator locator) {
|
||||||
|
|
||||||
if (item.ModItem is Locator locator) {
|
|
||||||
if (Main.tile[i, j].TileFrameX % 36 == 18) i--;
|
if (Main.tile[i, j].TileFrameX % 36 == 18) i--;
|
||||||
if (Main.tile[i, j].TileFrameY % 36 == 18) j--;
|
if (Main.tile[i, j].TileFrameY % 36 == 18) j--;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
displayName = MagicStorage Void Bag
|
displayName = MagicStorage Void Bag
|
||||||
author = jack
|
author = jack
|
||||||
version = 1.2
|
version = 1.3
|
||||||
modReferences = MagicStorage
|
modReferences = MagicStorage
|
||||||
dllReferences = MagicStorage_Hooks
|
dllReferences = MagicStorage_Hooks
|
||||||
sortAfter = MagicStorage
|
sortAfter = MagicStorage
|
||||||
|
Loading…
Reference in New Issue
Block a user