1
0
ミラー元 https://github.com/mt-mods/unifieddyes.git 前回の同期 2026-01-07 18:05:30 +01:00

fix facedir not being set when simple node placement fall-through is called

このコミットが含まれているのは:
Vanessa Ezekowitz
2017-01-28 07:19:30 -05:00
コミット 0fbf6baa72

ファイルの表示

@@ -304,7 +304,12 @@ function unifieddyes.on_rightclick(pos, node, player, stack, pointed_thing, newn
if unifieddyes.is_buildable_to(player:get_player_name(), pos2) and
minetest.registered_nodes[name] then
local placeable_node = minetest.registered_nodes[stack:get_name()]
minetest.set_node(pos2, placeable_node)
local yaw = player:get_look_yaw()
local dir = minetest.yaw_to_dir(yaw-1.5)
local fdir = minetest.dir_to_facedir(dir)
minetest.set_node(pos2, { name = placeable_node.name, param2 = fdir })
stack:take_item()
return stack
end