Add files via upload

master
AiTechEye 2021-02-11 14:49:57 +01:00 committed by GitHub
parent bb4b3847e7
commit ac7f4cc808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -166,8 +166,14 @@ spacestuff.wieldsuit=function(user,s)
if inv:contains_item("main","spacestuff:air_gassbotte") then
inv:remove_item("main",ItemStack("spacestuff:air_gassbotte"))
stack:set_wear(0)
minetest.sound_play("spacestuff_pff", {pos=user:get_pos(), gain = 1, max_hear_distance = 8})
local pos = user:get_pos()
minetest.sound_play("spacestuff_pff", {pos=pos, gain = 1, max_hear_distance = 8})
user:get_inventory():add_item("main","spacestuff:air_gassbotte_empty")
if minetest.get_node(pos).name == "default:vacuum" then
exaachievements.customize(user,"Space guy")
end
else
minetest.chat_send_player(name,"Have 'Air gassbottes' in your inventory to reload")
spacestuff.wieldsuit(user,true)