From ac3d41f5570c94fcb3dee5a9c257ebdf1b6ab234 Mon Sep 17 00:00:00 2001 From: Niklp <89982526+Niklp09@users.noreply.github.com> Date: Wed, 13 Jul 2022 01:09:01 +0200 Subject: [PATCH] general maintenance (#1) --- depends.txt | 2 -- description.txt | 1 - init.lua | 15 +++++---------- mod.conf | 2 ++ 4 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 depends.txt delete mode 100644 description.txt diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 2cec86e..0000000 --- a/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -default -digilines diff --git a/description.txt b/description.txt deleted file mode 100644 index e93f904..0000000 --- a/description.txt +++ /dev/null @@ -1 +0,0 @@ -This mod provides a set of classic Nixie tubes, and a set of alphanumeric 15-segment tubes similar to Burroughs B-7971, controlled by Mesecons' Digilines mod. diff --git a/init.lua b/init.lua index c11c22a..bde9220 100644 --- a/init.lua +++ b/init.lua @@ -3,12 +3,7 @@ nixie_tubes = {} -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s) return s end -end +local S = minetest.get_translator(minetest.get_current_modname()) local nixie_types = { "1", @@ -124,7 +119,7 @@ for _,tube in ipairs(nixie_types) do "nixie_tube_anode.png", "nixie_tube_glass.png", }, - use_texture_alpha = true, + use_texture_alpha = "clip", groups = groups, paramtype = "light", paramtype2 = "facedir", @@ -159,7 +154,7 @@ for _,tube in ipairs(nixie_types) do "nixie_tube_anode.png", "nixie_tube_glass.png", }, - use_texture_alpha = true, + use_texture_alpha = "clip", groups = groups, paramtype = "light", paramtype2 = "facedir", @@ -196,7 +191,7 @@ for _,tube in ipairs(nixie_types) do cathode2, "nixie_tube_glass.png", }, - use_texture_alpha = true, + use_texture_alpha = "clip", groups = groups, paramtype = "light", paramtype2 = "facedir", @@ -465,7 +460,7 @@ for i in ipairs(alnum_chars) do "nixie_tube_anode.png", "nixie_tube_glass.png", }, - use_texture_alpha = true, + use_texture_alpha = "clip", groups = groups, paramtype = "light", paramtype2 = "facedir", diff --git a/mod.conf b/mod.conf index 0773b9f..446e48f 100644 --- a/mod.conf +++ b/mod.conf @@ -1,2 +1,4 @@ name = nixie_tubes +description = This mod provides a set of classic Nixie tubes, and a set of alphanumeric 15-segment tubes similar to Burroughs B-7971, controlled by Mesecons' Digilines mod. +depends = default, digilines min_minetest_version = 5.2.0