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;
|
||||
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--;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user