From 93eb0794d6f7366df5fb375855b2e5e5888304c6 Mon Sep 17 00:00:00 2001 From: you Date: Sat, 31 Mar 2018 14:48:38 +0200 Subject: ObjectRef: Add add_velocity() (#3208) Allow changing the velocity of objects relatively to their current velocity --- builtin/game/falling.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/game') diff --git a/builtin/game/falling.lua b/builtin/game/falling.lua index 974ba3959..4ebe39f5f 100644 --- a/builtin/game/falling.lua +++ b/builtin/game/falling.lua @@ -39,7 +39,7 @@ core.register_entity(":__builtin:falling_node", { on_activate = function(self, staticdata) self.object:set_armor_groups({immortal = 1}) - + local ds = core.deserialize(staticdata) if ds and ds.node then self:set_node(ds.node, ds.meta) -- cgit v1.2.3