From 1f3d14e0b0bc093de7c488d717f73f667ccf9d92 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 20 Feb 2017 17:10:51 +0100 Subject: [PATCH] Complain about ugly soul sand speed code --- mods/PLAYER/playerplus/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/PLAYER/playerplus/init.lua b/mods/PLAYER/playerplus/init.lua index 079d5b722..3e3653d7b 100644 --- a/mods/PLAYER/playerplus/init.lua +++ b/mods/PLAYER/playerplus/init.lua @@ -78,6 +78,7 @@ minetest.register_globalstep(function(dtime) if playerplus[name].nod_stand == "mcl_nether:soul_sand" then -- TODO: Tweak walk speed -- TODO: Also slow down mobs + -- FIXME: This whole speed thing is a giant hack. We need a proper framefork for cleanly handling player speeds local below = playerplus[name].nod_stand_below if below == "mcl_core:ice" or below == "mcl_core:packed_ice" or below == "mcl_core:slimeblock" then def.speed = def.speed - 0.9