Fix legacy water alpha stuff

master
Wuzzy 2021-02-24 17:09:18 +01:00
parent 49b7f15643
commit 41150c61f1
2 changed files with 5 additions and 8 deletions

View File

@ -11,11 +11,6 @@ else
S = function ( s ) return s end
end
WATER_ALPHA = 160
WATER_VISC = 1
LAVA_VISC = 7
LIGHT_MAX = 14
-- Definitions made by this mod that other mods can use too
default = {}

View File

@ -12,6 +12,8 @@ else
F = function ( s ) return minetest.formspec_escape(s) end
end
local WATER_VISC = 1
minetest.register_node("default:stone", {
description = S("stone"),
tiles = {"default_stone.png"},
@ -163,7 +165,7 @@ minetest.register_node("default:water_flowing", {
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8}
},
},
alpha = WATER_ALPHA,
use_texture_alpha = "blend",
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
@ -196,7 +198,7 @@ minetest.register_node("default:water_source", {
backface_culling = false,
}
},
alpha = WATER_ALPHA,
use_texture_alpha = "blend",
paramtype = "light",
walkable = false,
pointable = false,
@ -229,7 +231,7 @@ minetest.register_node("default:torch", {
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
light_source = LIGHT_MAX-1,
light_source = 13,
selection_box = {
type = "wallmounted",
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},