1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-07-07 02:30:34 +02:00

Add tag support into LuaTube.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko
2024-02-04 21:52:55 +01:00
parent 7607fff26e
commit 8bc1523fcd
2 changed files with 25 additions and 6 deletions

View File

@ -378,6 +378,7 @@ luaentity.register_entity("pipeworks:tubed_item", {
end
local found_next, new_velocity, multimode = go_next(self.start_pos, velocity, stack, self.owner) -- todo: color
self.itemstring = stack:to_string()
local rev_vel = vector.multiply(velocity, -1)
local rev_dir = vector.direction(self.start_pos,vector.add(self.start_pos,rev_vel))
local rev_node = minetest.get_node(vector.round(vector.add(self.start_pos,rev_dir)))