diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-04-28 06:38:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 08:38:47 +0200 |
commit | 228f1c67704ab8014d30a3301bd15a1a88324ce0 (patch) | |
tree | ebd7265d7d8dca391a41a4ba9501f14fe102ecfc /games/devtest/mods/experimental/commands.lua | |
parent | 734fb2c811cdb0c26153c2bd5b62e458343963e7 (diff) | |
download | minetest-228f1c67704ab8014d30a3301bd15a1a88324ce0.tar.gz minetest-228f1c67704ab8014d30a3301bd15a1a88324ce0.tar.bz2 minetest-228f1c67704ab8014d30a3301bd15a1a88324ce0.zip |
Fix rotation for falling mesh degrotate nodes (#11159)
Diffstat (limited to 'games/devtest/mods/experimental/commands.lua')
-rw-r--r-- | games/devtest/mods/experimental/commands.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/games/devtest/mods/experimental/commands.lua b/games/devtest/mods/experimental/commands.lua index 8bfa467e1..e42ae954d 100644 --- a/games/devtest/mods/experimental/commands.lua +++ b/games/devtest/mods/experimental/commands.lua @@ -131,10 +131,11 @@ local function place_nodes(param) p2_max = 63 elseif def.paramtype2 == "leveled" then p2_max = 127 - elseif def.paramtype2 == "degrotate" and def.drawtype == "plantlike" then - p2_max = 179 + elseif def.paramtype2 == "degrotate" and (def.drawtype == "plantlike" or def.drawtype == "mesh") then + p2_max = 239 elseif def.paramtype2 == "colorfacedir" or def.paramtype2 == "colorwallmounted" or + def.paramtype2 == "colordegrotate" or def.paramtype2 == "color" then p2_max = 255 end @@ -143,7 +144,8 @@ local function place_nodes(param) -- Skip undefined param2 values if not ((def.paramtype2 == "meshoptions" and p2 % 8 > 4) or (def.paramtype2 == "colorwallmounted" and p2 % 8 > 5) or - (def.paramtype2 == "colorfacedir" and p2 % 32 > 23)) then + ((def.paramtype2 == "colorfacedir" or def.paramtype2 == "colordegrotate") + and p2 % 32 > 23)) then minetest.set_node(pos, { name = itemstring, param2 = p2 }) nodes_placed = nodes_placed + 1 |