aboutsummaryrefslogtreecommitdiff
path: root/internal/game/core_production.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/core_production.go')
-rw-r--r--internal/game/core_production.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/core_production.go b/internal/game/core_production.go
index afffa7c..7a4b6e9 100644
--- a/internal/game/core_production.go
+++ b/internal/game/core_production.go
@@ -16,7 +16,7 @@ func (g *Game) findTool(p *player.Player, toolTypes []string) (toolSpeed float64
}
}
}
- for i := 0; i < 28; i++ {
+ for i := 0; i < player.MaxInventorySlots; i++ {
slot := p.InvSlot(i)
if slot == nil {
continue