aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/init.lua b/init.lua
index 994f15a..a9a2232 100644
--- a/init.lua
+++ b/init.lua
@@ -97,9 +97,7 @@ local function create_box(motorhash, pos, target, sender)
sender:set_pos(pos)
sender:set_attach(obj, "", {x=0, y=9, z=0}, {x=0, y=0, z=0})
sender:set_eye_offset({x=0, y=-9, z=0},{x=0, y=-9, z=0})
- local p = sender:get_properties()
- p.visual_size = {x=VISUAL_INCREASE, y=VISUAL_INCREASE}
- sender:set_properties(p)
+ sender:set_properties({visual_size = {x=VISUAL_INCREASE, y=VISUAL_INCREASE}})
if armor_path then
armor:update_player_visuals(sender)
end
@@ -739,9 +737,7 @@ local function detach(self, pos)
end
player:set_detach()
player:set_eye_offset({x=0, y=0, z=0},{x=0, y=0, z=0})
- local p = player:get_properties()
- p.visual_size = {x=1, y=1}
- player:set_properties(p)
+ player:set_properties({visual_size = {x=1, y=1}})
if armor_path then
armor:update_player_visuals(player)
end