4 Commits

Author SHA1 Message Date
7e005158ac Update README 2025-06-24 21:16:28 +02:00
dd0b66a3df 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-24 21:16:28 +02:00
9354583de5 Improve LCD text readability at a distance 2025-06-22 08:40:44 +02:00
e54910c9fe Show a more helpful error text when no supported game could be found 2025-06-21 21:03:54 +02:00
2 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,10 @@ 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,7 +162,11 @@ local generate_line = function(s, ypos)
end
local generate_texture = function(lines)
local texture = "[combine:"..LCD_WIDTH.."x"..LCD_WIDTH
-- 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 ypos = math.floor((LCD_WIDTH - LINE_HEIGHT*NUMBER_OF_LINES) / 2)
for i = 1, #lines do
texture = texture..generate_line(lines[i], ypos)