1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-29 23:00:49 +02:00

also accept strings of tags in digilines and lua

fixes #116
This commit is contained in:
OgelGames
2024-03-07 14:56:19 +11:00
parent 6c66a2f43c
commit ce263da6d5
3 changed files with 5 additions and 5 deletions

View File

@ -388,7 +388,7 @@ luaentity.register_entity("pipeworks:tubed_item", {
end
local found_next, new_velocity, multimode = go_next(self.start_pos, velocity, stack, self.owner, tags) -- todo: color
if pipeworks.enable_item_tags then
self.tags = #tags > 0 and pipeworks.sanitize_tags(tags) or nil
self.tags = #tags > 0 and tags or nil
end
local rev_vel = vector.multiply(velocity, -1)
local rev_dir = vector.direction(self.start_pos,vector.add(self.start_pos,rev_vel))