2 Commits

Author SHA1 Message Date
1874389eeb Update README 2025-06-21 20:57:54 +02:00
5ab9274739 Fix pipeworks pulling from the wrong chest slot
This removes workarounds related to inv callbacks which were later fixed by the engine.
In addition, pipeworks does (for years) provide the item index, thus such workarounds
were removed too and replaced by using the arguments provided.

Fixes an item duplication when using a pipeworks injector to pull from a digiline chest.
2025-06-21 20:47:48 +02:00
2 changed files with 1 additions and 9 deletions

View File

@ -12,10 +12,6 @@ digilines.mcl = minetest.get_modpath("mcl_core")
if minetest.get_modpath("default") then digilines.sounds = default end
if digilines.mcl then digilines.sounds = mcl_sounds end
-- Show a more helpful error message to the player
assert(digilines.sounds,
"Digilines requires Minetest Game or a VoxeLibre (-compatible) game.")
-- Backwards compatibility code.
-- We define a proxy table whose methods can be called with the
-- `foo:bar` notation, and it will redirect the call to the

View File

@ -162,11 +162,7 @@ local generate_line = function(s, ypos)
end
local generate_texture = function(lines)
-- Active Mip Mapping ruins the text due to nearby transparent pixels at a distance.
-- Using `lcd_anyside.png` as base image fixes this (see issue #58)
local texture = ("lcd_anyside.png^[resize:%dx%d^[combine:%dx%d"):format(
LCD_WIDTH, LCD_WIDTH, LCD_WIDTH, LCD_WIDTH
)
local texture = "[combine:"..LCD_WIDTH.."x"..LCD_WIDTH
local ypos = math.floor((LCD_WIDTH - LINE_HEIGHT*NUMBER_OF_LINES) / 2)
for i = 1, #lines do
texture = texture..generate_line(lines[i], ypos)