Skip to content

Commit 73c33ca

Browse files
authored
Beds: Fix player_monoids compatibility (#3226)
I incorrectly assumed that 'get_active_branch' would return the branch name. 'checkout_branch' does (yet) not perform type checks to catch such mistakes.
1 parent b517bdb commit 73c33ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mods/beds/functions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ local function set_physics_override(player, put_to_bed)
7171
if player_monoids then
7272
for k, v in pairs(OVERRIDES) do
7373
local monoid = player_monoids[k]
74-
pdata["monoid_branch_" .. k] = monoid:get_active_branch(player)
74+
pdata["monoid_branch_" .. k] = monoid:get_active_branch(player):get_name()
7575
-- Change the "context" of the physics overrides
7676
local branch = monoid:checkout_branch(player, IDENTIFIER)
7777
branch:add_change(player, v)

0 commit comments

Comments
 (0)