Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
sztest
NodeCore
Commits
c85ad5d6
Commit
c85ad5d6
authored
Feb 07, 2021
by
Aaron Suen
Browse files
Compat hack for 5.3- use_texture_alpha.
parent
dabf8ac6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
mods/nc_api/compat_nodealpha.lua
mods/nc_api/compat_nodealpha.lua
+14
-0
mods/nc_api/init.lua
mods/nc_api/init.lua
+1
-0
No files found.
mods/nc_api/compat_nodealpha.lua
0 → 100644
View file @
c85ad5d6
-- LUALOCALS < ---------------------------------------------------------
local
minetest
,
type
=
minetest
,
type
-- LUALOCALS > ---------------------------------------------------------
if
minetest
.
features
.
use_texture_alpha_string_modes
then
return
end
local
oldreg
=
minetest
.
register_item
function
minetest
.
register_item
(
name
,
def
,
...
)
if
def
and
type
(
def
.
use_texture_alpha
)
==
"string"
then
def
.
use_texture_alpha
=
def
.
use_texture_alpha
==
"blend"
or
nil
end
return
oldreg
(
name
,
def
,
...
)
end
mods/nc_api/init.lua
View file @
c85ad5d6
...
...
@@ -84,6 +84,7 @@ end
include
(
"compat_clientversion"
)
include
(
"compat_issue10127"
)
include
(
"compat_legacyent"
)
include
(
"compat_nodealpha"
)
include
(
"util_misc"
)
include
(
"util_hookmeta"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment