diff options
author | SmallJoker <mk939@ymail.com> | 2018-07-04 18:53:11 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-07-04 18:58:35 +0200 |
commit | d19f4fc5187b5e0ec2c2f5101d0c98dda1d6b774 (patch) | |
tree | 72f59ec9edd5af2da3606e31e57fe64b7d671848 /luaentity.lua | |
parent | 92a55c3985b53dd0a99460527fb88e14ddf60563 (diff) |
Fix get_pos crash since 92a55c3
Diffstat (limited to 'luaentity.lua')
-rw-r--r-- | luaentity.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/luaentity.lua b/luaentity.lua index 085a8e0..c11c030 100644 --- a/luaentity.lua +++ b/luaentity.lua @@ -186,13 +186,13 @@ local entitydef_default = { self:_add_attached(id) end end, - getid = function(self) + get_id = function(self) return self._id end, - getpos = function(self) + get_pos = function(self) return vector.new(self._pos) end, - setpos = function(self, pos) + set_pos = function(self, pos) self._pos = vector.new(pos) --for _, entity in pairs(self._attached_entities) do -- if entity.entity then @@ -205,20 +205,20 @@ local entitydef_default = { master_def.entity:set_pos(vector.add(self._pos, master_def.offset)) end end, - getvelocity = function(self) + get_velocity = function(self) return vector.new(self._velocity) end, - setvelocity = function(self, velocity) + set_velocity = function(self, velocity) self._velocity = vector.new(velocity) local master = self._attached_entities_master if master then self._attached_entities[master].entity:set_velocity(self._velocity) end end, - getacceleration = function(self) + get_acceleration = function(self) return vector.new(self._acceleration) end, - setacceleration = function(self, acceleration) + set_acceleration = function(self, acceleration) self._acceleration = vector.new(acceleration) local master = self._attached_entities_master if master then |