From 6252c5fa99f741cda7045ffc89e6df3ddfa1b950 Mon Sep 17 00:00:00 2001 From: IamPyu Date: Mon, 16 Dec 2024 12:14:09 -0600 Subject: [PATCH] Minor changes --- mods/ITEMS/pyutest_electricity/devices/dropper.lua | 2 +- mods/ITEMS/pyutest_electricity/devices/noteblock.lua | 1 + mods/PLAYER/pyutest_hunger/init.lua | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/pyutest_electricity/devices/dropper.lua b/mods/ITEMS/pyutest_electricity/devices/dropper.lua index 03b2e79..fe39c65 100644 --- a/mods/ITEMS/pyutest_electricity/devices/dropper.lua +++ b/mods/ITEMS/pyutest_electricity/devices/dropper.lua @@ -1,6 +1,6 @@ local function dropper_formspec(pos) local spos = string.format("%d,%d,%d", pos.x, pos.y, pos.z) - + return table.concat({ "size[8,9]", "list[nodemeta:", spos, ";main;0,0;8,4;]", diff --git a/mods/ITEMS/pyutest_electricity/devices/noteblock.lua b/mods/ITEMS/pyutest_electricity/devices/noteblock.lua index 7cee1e7..f2dfc10 100644 --- a/mods/ITEMS/pyutest_electricity/devices/noteblock.lua +++ b/mods/ITEMS/pyutest_electricity/devices/noteblock.lua @@ -54,6 +54,7 @@ local function play_sound(pos) expirationtime = 1, size = 2, vertical = true, + glow = core.LIGHT_MAX }) end diff --git a/mods/PLAYER/pyutest_hunger/init.lua b/mods/PLAYER/pyutest_hunger/init.lua index 24d0dd6..07e5b08 100644 --- a/mods/PLAYER/pyutest_hunger/init.lua +++ b/mods/PLAYER/pyutest_hunger/init.lua @@ -83,7 +83,7 @@ core.register_globalstep(function (dtime) timers[name].damage = timers[name].damage + 5 * dtime timers[name].health = timers[name].health + 8 * dtime - if timers[name].hunger > 75 then + if timers[name].hunger > 135 then PyuTest.hunger_add(name, -2) timers[name].hunger = 0 end