aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_gather.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/action_gather.go')
-rw-r--r--internal/game/action_gather.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/game/action_gather.go b/internal/game/action_gather.go
index ffd30e1..8b45129 100644
--- a/internal/game/action_gather.go
+++ b/internal/game/action_gather.go
@@ -180,6 +180,11 @@ func (g *Game) advanceGather(sess *net.Session, p *player.Player) {
_, shared := p.Action.Data["deplete_timer"]
if step == 0 {
+ if p.FirstFreeSlot() == -1 {
+ sess.WriteLine(g.colorize(sess, "error", "Your inventory is too full!"))
+ g.CancelAction(p)
+ return
+ }
if cfg.Bait != "" {
if !p.HasItem(cfg.Bait) {
baitName := cfg.Bait