[mcl_doors] fix warnings
parent
b3c0e7c1bd
commit
30e83088d4
|
@ -98,13 +98,11 @@ function mcl_doors:register_trapdoor(name, def)
|
||||||
if not usagehelp and not def.only_redstone_can_open then
|
if not usagehelp and not def.only_redstone_can_open then
|
||||||
usagehelp = S("To open or close this trapdoor, rightclick it or send a redstone signal to it.")
|
usagehelp = S("To open or close this trapdoor, rightclick it or send a redstone signal to it.")
|
||||||
end
|
end
|
||||||
if not tt_help then
|
if def.only_redstone_can_open then
|
||||||
if def.only_redstone_can_open then
|
tt_help = S("Openable by redstone power")
|
||||||
tt_help = S("Openable by redstone power")
|
else
|
||||||
else
|
tt_help = S("Openable by players and redstone power")
|
||||||
tt_help = S("Openable by players and redstone power")
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Closed trapdoor
|
-- Closed trapdoor
|
||||||
|
|
||||||
|
@ -164,7 +162,7 @@ function mcl_doors:register_trapdoor(name, def)
|
||||||
|
|
||||||
local fpos = get_fpos(placer, pointed_thing)
|
local fpos = get_fpos(placer, pointed_thing)
|
||||||
|
|
||||||
local origname = itemstack:get_name()
|
--local origname = itemstack:get_name()
|
||||||
if p0.y - 1 == p1.y or (fpos > 0 and fpos < 0.5)
|
if p0.y - 1 == p1.y or (fpos > 0 and fpos < 0.5)
|
||||||
or (fpos < -0.5 and fpos > -0.999999999) then
|
or (fpos < -0.5 and fpos > -0.999999999) then
|
||||||
param2 = param2 + 20
|
param2 = param2 + 20
|
||||||
|
|
Loading…
Reference in New Issue