diff options
| author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-17 23:13:22 -0500 | 
|---|---|---|
| committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-17 23:13:22 -0500 | 
| commit | aacb377f8c3549958cc5cb0133e258b8cba3916a (patch) | |
| tree | 9ecf9cea94ac3642b7561e375c63b57165be2d2e | |
| parent | 80e5429bf3da816600dd7a30e9b83a8af52bfe36 (diff) | |
| download | unifieddyes-aacb377f8c3549958cc5cb0133e258b8cba3916a.tar unifieddyes-aacb377f8c3549958cc5cb0133e258b8cba3916a.tar.gz unifieddyes-aacb377f8c3549958cc5cb0133e258b8cba3916a.tar.bz2 unifieddyes-aacb377f8c3549958cc5cb0133e258b8cba3916a.tar.xz unifieddyes-aacb377f8c3549958cc5cb0133e258b8cba3916a.zip  | |
"widen" the range for floor/ceiling placement checking
in fix_rotation function
| -rw-r--r-- | init.lua | 4 | 
1 files changed, 2 insertions, 2 deletions
@@ -103,9 +103,9 @@ function unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)  	local fdir = minetest.dir_to_wallmounted(dir) -	if pitch < -(math.pi/4) then +	if pitch < -(math.pi/8) then  		fdir = 0 -	elseif pitch > math.pi/4 then +	elseif pitch > math.pi/8 then  		fdir = 1  	end  	minetest.swap_node(pos, { name = node.name, param2 = fdir })  | 
