aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/testnodes
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2021-04-28 06:38:47 +0000
committerGitHub <noreply@github.com>2021-04-28 08:38:47 +0200
commit228f1c67704ab8014d30a3301bd15a1a88324ce0 (patch)
treeebd7265d7d8dca391a41a4ba9501f14fe102ecfc /games/devtest/mods/testnodes
parent734fb2c811cdb0c26153c2bd5b62e458343963e7 (diff)
downloadminetest-228f1c67704ab8014d30a3301bd15a1a88324ce0.tar.gz
minetest-228f1c67704ab8014d30a3301bd15a1a88324ce0.tar.bz2
minetest-228f1c67704ab8014d30a3301bd15a1a88324ce0.zip
Fix rotation for falling mesh degrotate nodes (#11159)
Diffstat (limited to 'games/devtest/mods/testnodes')
-rw-r--r--games/devtest/mods/testnodes/drawtypes.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/games/devtest/mods/testnodes/drawtypes.lua b/games/devtest/mods/testnodes/drawtypes.lua
index 3bf631714..2bc7ec2e3 100644
--- a/games/devtest/mods/testnodes/drawtypes.lua
+++ b/games/devtest/mods/testnodes/drawtypes.lua
@@ -254,11 +254,11 @@ minetest.register_node("testnodes:mesh_degrotate", {
drawtype = "mesh",
paramtype = "light",
paramtype2 = "degrotate",
- mesh = "testnodes_pyramid.obj",
+ mesh = "testnodes_ocorner.obj",
tiles = { "testnodes_mesh_stripes2.png" },
on_rightclick = rotate_on_rightclick,
- place_param2 = 7,
+ place_param2 = 10, -- 15°
sunlight_propagates = true,
groups = { dig_immediate = 3 },
})
@@ -266,14 +266,15 @@ minetest.register_node("testnodes:mesh_degrotate", {
minetest.register_node("testnodes:mesh_colordegrotate", {
description = S("Color Degrotate Mesh Drawtype Test Node"),
drawtype = "mesh",
+ paramtype = "light",
paramtype2 = "colordegrotate",
palette = "testnodes_palette_facedir.png",
- mesh = "testnodes_pyramid.obj",
- tiles = { "testnodes_mesh_stripes2.png" },
+ mesh = "testnodes_ocorner.obj",
+ tiles = { "testnodes_mesh_stripes3.png" },
on_rightclick = rotate_on_rightclick,
- -- color index 1, 7 steps rotated
- place_param2 = 1 * 2^5 + 7,
+ -- color index 1, 1 step (=15°) rotated
+ place_param2 = 1 * 2^5 + 1,
sunlight_propagates = true,
groups = { dig_immediate = 3 },
})