fixed position movements above 5
This commit is contained in:
parent
2573c9a1c3
commit
ffb9222de5
@ -482,7 +482,7 @@ minetest.register_entity("ap_airship:airship", {
|
||||
self.hull_integrity = data.stored_hull_integrity
|
||||
self.item = data.stored_item
|
||||
self._inv_id = data.stored_inv_id
|
||||
self._passengers = data.stored_passengers or ap_airship.copy_vector({[1]=nil, [2]=nil, [3]=nil, [4]=nil, [5]=nil,})
|
||||
self._passengers = data.stored_passengers or ap_airship.copy_vector({[1]=nil, [2]=nil, [3]=nil, [4]=nil, [5]=nil, [6]=nil, [7]=nil, [8]=nil, [9]=nil, [10]=nil, [11]=nil, [12]=nil})
|
||||
self._passengers_locked = data.stored_passengers_locked
|
||||
--minetest.debug("loaded: ", self._energy)
|
||||
local properties = self.object:get_properties()
|
||||
|
2
init.lua
2
init.lua
@ -137,7 +137,7 @@ minetest.register_craftitem("ap_airship:airship", {
|
||||
local airship = minetest.add_entity(pointed_pos, "ap_airship:airship")
|
||||
if airship and placer then
|
||||
local ent = airship:get_luaentity()
|
||||
ent._passengers = ap_airship.copy_vector({[1]=nil, [2]=nil, [3]=nil, [4]=nil, [5]=nil,})
|
||||
ent._passengers = ap_airship.copy_vector({[1]=nil, [2]=nil, [3]=nil, [4]=nil, [5]=nil, [6]=nil, [7]=nil, [8]=nil, [9]=nil, [10]=nil, [11]=nil, [12]=nil})
|
||||
--minetest.chat_send_all('passengers: '.. dump(ent._passengers))
|
||||
local owner = placer:get_player_name()
|
||||
ent.owner = owner
|
||||
|
Loading…
x
Reference in New Issue
Block a user