Implement 26.3 bed sleeping
This commit is contained in:
@@ -397,6 +397,13 @@ class Commands:
|
||||
self.g.game.respawn()
|
||||
reply = 'ok'
|
||||
|
||||
## 1sleep [new] - use a bed; `new` forces bed placement
|
||||
if command == 'sleep':
|
||||
self.g.job.sleep_with_bed_states.force_new_bed = (
|
||||
data.lower() in ('new', 'place'))
|
||||
self.g.job.state = self.g.job.sleep
|
||||
reply = 'ok'
|
||||
|
||||
## 1gather wood - gathers wood from the world
|
||||
## 1gather sand - gathers sand from the world
|
||||
if command == 'gather' and data:
|
||||
|
||||
Reference in New Issue
Block a user