fix: storage hearts now work while holding vanilla items

This commit is contained in:
Jack Bond-Preston 2022-07-10 13:00:02 +01:00
parent 5694035da3
commit d001727c2d
Signed by: jack
GPG Key ID: 010071F1482BA852
2 changed files with 2 additions and 4 deletions

View File

@ -13,9 +13,7 @@ namespace MagicStorageVoidBag.Hooks {
Player player = Main.LocalPlayer;
Item item = player.HeldItem;
if (item.ModItem == null) return false;
if (item.ModItem is Locator locator) {
if (!item.IsAir && item.ModItem is Locator locator) {
if (Main.tile[i, j].TileFrameX % 36 == 18) i--;
if (Main.tile[i, j].TileFrameY % 36 == 18) j--;

View File

@ -1,6 +1,6 @@
displayName = MagicStorage Void Bag
author = jack
version = 1.2
version = 1.3
modReferences = MagicStorage
dllReferences = MagicStorage_Hooks
sortAfter = MagicStorage