Modernize API calls

* Textures: fix invalid srgb profiles

* Deprecated get_player_velocity -> get_velocity

* Deprecated: boolean value for use_texture_alpha

---------

Co-authored-by: mazes 80 <>
这个提交包含在:
mazes-80
2023-02-22 03:12:24 +01:00
提交者 GitHub
父节点 4b44f25ef8
当前提交 351c11b3c7
共有 5 个文件被更改,包括 3 次插入3 次删除

查看文件

@@ -20,7 +20,7 @@ minetest.register_node(BLOCK_NAME, {
},
freezemelt = "default:river_water_source",
sounds = default.node_sound_glass_defaults(),
use_texture_alpha = true,
use_texture_alpha = "blend",
drop = "",
on_destruct = function(pos)
-- asynchronous to avoid destruction loop

查看文件

@@ -69,7 +69,7 @@ for i = 1, VARIANT_COUNT do
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = true,
use_texture_alpha = "blend",
node_box = node_box,
groups = {
not_in_creative_inventory = 1,