Fix texture alpha warnings since 5.5.0-dev (#12)
This commit is contained in:
parent
3a933aa081
commit
4dff9943d9
27
.luacheckrc
Normal file
27
.luacheckrc
Normal file
@ -0,0 +1,27 @@
|
||||
quiet = 1
|
||||
codes = true
|
||||
|
||||
exclude_files = {
|
||||
".luarocks/*",
|
||||
"worldeditadditions/utils/bit.lua"
|
||||
}
|
||||
|
||||
|
||||
ignore = {
|
||||
"631", "61[124]",
|
||||
"542",
|
||||
"412",
|
||||
"321/bit",
|
||||
"21[123]"
|
||||
}
|
||||
|
||||
-- Read-write globals (i.e. they can be defined)
|
||||
globals = {
|
||||
"flowerpot"
|
||||
}
|
||||
-- Read-only globals
|
||||
read_globals = {
|
||||
"minetest",
|
||||
"default"
|
||||
}
|
||||
std = "max"
|
4
init.lua
4
init.lua
@ -84,7 +84,7 @@ function flowerpot.register_node(nodename)
|
||||
|
||||
local desc = nodedef.description
|
||||
local name = nodedef.name:gsub(":", "_")
|
||||
local tiles = {}
|
||||
local tiles
|
||||
|
||||
if nodedef.drawtype == "plantlike" then
|
||||
tiles = {
|
||||
@ -109,6 +109,7 @@ function flowerpot.register_node(nodename)
|
||||
tiles = tiles,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/4, -1/2, -1/4, 1/4, -1/8, 1/4},
|
||||
@ -151,6 +152,7 @@ minetest.register_node("flowerpot:empty", {
|
||||
},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/4, -1/2, -1/4, 1/4, -1/8, 1/4},
|
||||
|
Loading…
x
Reference in New Issue
Block a user