mirror of
https://github.com/luanti-org/minetest_game.git
synced 2026-01-12 20:25:32 +01:00
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.
This commit is contained in:
@@ -71,7 +71,7 @@ local function set_physics_override(player, put_to_bed)
|
||||
if player_monoids then
|
||||
for k, v in pairs(OVERRIDES) do
|
||||
local monoid = player_monoids[k]
|
||||
pdata["monoid_branch_" .. k] = monoid:get_active_branch(player)
|
||||
pdata["monoid_branch_" .. k] = monoid:get_active_branch(player):get_name()
|
||||
-- Change the "context" of the physics overrides
|
||||
local branch = monoid:checkout_branch(player, IDENTIFIER)
|
||||
branch:add_change(player, v)
|
||||
|
||||
Reference in New Issue
Block a user