Cozy Wather + buld systeme

This commit is contained in:
2026-07-07 16:43:51 +02:00
parent 031ac42e5d
commit 6b26ae3376
2140 changed files with 3482825 additions and 2252 deletions
@@ -110,13 +110,14 @@ namespace Ashwild.Inventory
private void HandleHotbarScroll(float dir)
{
if (PlayerEvents.IsPlacingBuild) return;
if (dir > 0f) SelectHotbarSlot((selectedHotbarIndex - 1 + hotbarSize) % hotbarSize);
else if (dir < 0f) SelectHotbarSlot((selectedHotbarIndex + 1) % hotbarSize);
}
private void OnDropPressed()
{
if (PlayerEvents.IsInventoryOpen) return;
if (PlayerEvents.IsInventoryOpen || PlayerEvents.IsChestOpen) return;
if (PlayerStats.Instance != null && PlayerStats.Instance.IsDead) return;
DropItem(selectedHotbarIndex, 1);
}