Update 'mods/adv_lightsabers/force_api.lua'

This commit is contained in:
thunderdog1138 2020-07-16 18:34:08 +00:00
parent 920e605d78
commit 76b7d1483b
1 changed files with 4 additions and 1 deletions

View File

@ -292,7 +292,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if fields.bleed then
local playername = player:get_player_name()
if player:get_wielded_item():get_name() == "adv_lightsabers:kyber_crystal_blue"
or player:get_wielded_item():get_name() == "adv_lightsabers:kyber_crystal_green" then
or player:get_wielded_item():get_name() == "adv_lightsabers:kyber_crystal_green"
or player:get_wielded_item():get_name() == "adv_lightsabers:kyber_crystal_yellow"
or player:get_wielded_item():get_name() == "adv_lightsabers:kyber_crystal_purple"
or player:get_wielded_item():get_name() == "adv_lightsabers:kyber_crystal_white" then
minetest.chat_send_player(playername,"You have bled your Kyber Crystal")
player:set_wielded_item("adv_lightsabers:kyber_crystal_red")
end