diff options
author | Niklp <89982526+Niklp09@users.noreply.github.com> | 2023-07-24 09:59:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 09:59:26 +0200 |
commit | 1440f35fa62fd2c01b4844261290c88e42d2430f (patch) | |
tree | e42db53056e5d6f1c4fd562a924934081ae787c4 /ontime_clocks/common.lua | |
parent | e0e03058362e038d07d4063c4fbd6999ad27109c (diff) | |
download | display_modpack_no_craft-1440f35fa62fd2c01b4844261290c88e42d2430f.tar.gz display_modpack_no_craft-1440f35fa62fd2c01b4844261290c88e42d2430f.zip |
Add luacheck, update translations, replace ABMs, bug fixes (#1)
* luacheck, mt 5 translation, german translation, maintenance
* fix luacheck warnings
* Fix digital clock nodebox and texture
* Fix luacheck usage
* Add comment why fonts are not split into several lines
Diffstat (limited to 'ontime_clocks/common.lua')
-rw-r--r-- | ontime_clocks/common.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ontime_clocks/common.lua b/ontime_clocks/common.lua index cced299..2c7639f 100644 --- a/ontime_clocks/common.lua +++ b/ontime_clocks/common.lua @@ -1,5 +1,5 @@ --[[ - ontime_clocks mod for Minetest - Clock nodes displaying ingame time + ontime_clocks mod for Minetest - Clock nodes displaying ingame time (c) Pierre-Yves Rollo This file is part of ontime_clocks. @@ -34,7 +34,7 @@ function ontime_clocks.get_m12() end function ontime_clocks.get_digital_properties(color_off, color_on, hour, minute) - return + return { textures={"ontime_clocks_digital_background.png^[colorize:"..color_off .."^([combine:21x7" @@ -51,7 +51,7 @@ end function ontime_clocks.get_needles_properties(color, size, hour, minute) return { - textures={"[combine:"..size.."x"..size + textures={"[combine:"..size.."x"..size ..":0,"..(-size*hour).."=ontime_clocks_needle_h"..size..".png" ..":0,"..(-size*minute).."=ontime_clocks_needle_m"..size..".png" .."^[colorize:"..color}, |