mirror of
https://github.com/t-affeldt/regional_weather.git
synced 2025-01-25 01:20:24 +01:00
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 <>
This commit is contained in:
parent
4b44f25ef8
commit
351c11b3c7
@ -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,
|
||||
|
@ -50,7 +50,7 @@ local function generate_effects(params)
|
||||
|
||||
override["climate_api:skybox"] = skybox
|
||||
|
||||
local movement = params.player:get_player_velocity()
|
||||
local movement = params.player:get_velocity()
|
||||
local movement_direction
|
||||
if (vector.length(movement) < 0.1) then
|
||||
movement_direction = vector.new(0, 0, 0)
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 140 KiB |
Binary file not shown.
Before Width: | Height: | Size: 510 KiB After Width: | Height: | Size: 93 KiB |
Loading…
Reference in New Issue
Block a user