Fix texture stuff
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
using Zennysoft.Game.Abstractions;
|
||||
using Zennysoft.Ma.Adapter;
|
||||
|
||||
namespace Zennysoft.Game.Ma;
|
||||
|
||||
@@ -24,12 +24,12 @@ public partial class DroppedItem : RigidBody3D, IDroppedItem
|
||||
|
||||
[Node] private Area3D Pickup { get; set; } = default!;
|
||||
|
||||
public IInventoryItem Item { get; set; }
|
||||
public InventoryItem Item { get; set; }
|
||||
|
||||
public void OnResolved()
|
||||
{
|
||||
ContactMonitor = true;
|
||||
Sprite.Texture = ((InventoryItem)Item).ItemStats.Texture;
|
||||
Sprite.Texture = Item.GetTexture();
|
||||
}
|
||||
|
||||
public async void Drop()
|
||||
|
||||
Reference in New Issue
Block a user