From ffb9222de523589c38367de297281850eb098845 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sat, 20 May 2023 13:18:57 -0300 Subject: [PATCH] fixed position movements above 5 --- entities.lua | 2 +- init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entities.lua b/entities.lua index 9c57b4b..63ef316 100755 --- a/entities.lua +++ b/entities.lua @@ -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() diff --git a/init.lua b/init.lua index 6bb2b6a..1443035 100755 --- a/init.lua +++ b/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