mirror of
https://github.com/minetest-mods/technic.git
synced 2025-03-20 11:20:31 +01:00
make also sneak possible
This commit is contained in:
parent
6e78ba5dd7
commit
3473deca00
@ -211,7 +211,8 @@ function technic.register_cable(tier, size)
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if placer:get_player_control().aux1 then
|
local crtl = placer:get_player_control()
|
||||||
|
if (crtl.aux1 or crtl.sneak) and not (crtl.aux1 and crtl.sneak) then
|
||||||
local fine_pointed = minetest.pointed_thing_to_face_pos(placer, pointed_thing)
|
local fine_pointed = minetest.pointed_thing_to_face_pos(placer, pointed_thing)
|
||||||
fine_pointed = vector.subtract(fine_pointed, pointed_thing.above)
|
fine_pointed = vector.subtract(fine_pointed, pointed_thing.above)
|
||||||
fine_pointed[changed] = nil
|
fine_pointed[changed] = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user