Fix legacy water alpha stuff
This commit is contained in:
parent
49b7f15643
commit
41150c61f1
@ -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 = {}
|
||||
|
||||
|
@ -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},
|
||||
|
Loading…
x
Reference in New Issue
Block a user