mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-01 07:13:45 +01:00
Fix a bug and improve some things
Bugs: 1) When player is in liquid and takes off his/her boots, he/her still has increased speed. Improve: 1) Check for liquid group instead of node names
This commit is contained in:
parent
828c1110b1
commit
de9d838642
@ -198,7 +198,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Swimming? Check if boots are enchanted with depth strider
|
-- Swimming? Check if boots are enchanted with depth strider
|
||||||
if node_feet == "mcl_core:water_source" or node_feet == "mclx_core:river_water_source" then
|
if minetest.get_item_group(node_feet, "liquid") and mcl_enchanting.get_enchantment(player:get_inventory():get_stack("armor", 5), "depth_strider") then
|
||||||
local boots = player:get_inventory():get_stack("armor", 5)
|
local boots = player:get_inventory():get_stack("armor", 5)
|
||||||
local depth_strider = mcl_enchanting.get_enchantment(boots, "depth_strider")
|
local depth_strider = mcl_enchanting.get_enchantment(boots, "depth_strider")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user