Add files via upload

master
AiTechEye 2022-05-17 15:08:35 +02:00 committed by GitHub
parent b77febb7ff
commit 3f2a8c580d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ minetest.register_entity("exa2d:cam",{
if default.defpos(cef,"buildable_to") and not minetest.is_protected(cef, "") and not exa2d.is_item(cef) then
minetest.set_node(cef,{name="exa2d:coin_effect",param2=above.param2})
end
self.user:hud_change(exa2d.user[self.username].ui_coins,"text",self.user:get_meta():get_int("coins"))
self.user:hud_change(exa2d.user[self.username].ui_coins,"text",Getcoin(self.user))
end
elseif not self.block_hit and v.y ~= 0 and above.name == "exa2d:block_empty" then
self.block_hit = true
@ -131,7 +131,7 @@ minetest.register_entity("exa2d:cam",{
if cp then
minetest.sound_play("exa2d_coin",{pos=pos2,gain=0.1,max_hear_distance=10})
Coin(self.user,1)
self.user:hud_change(exa2d.user[self.username].ui_coins,"text",self.user:get_meta():get_int("coins"))
self.user:hud_change(exa2d.user[self.username].ui_coins,"text",Getcoin(self.user))
minetest.remove_node(cp)
elseif self.block_hit and self.jump_timer <= 0 then
self.block_hit = false

View File

@ -293,7 +293,7 @@ exa2d.join=function(player,pos)
exa2d.user[name].ui_coins = player:hud_add({
hud_elem_type="text",
scale = {x=1,y=1},
text=player:get_meta():get_int("coins"),
text=Getcoin(player),
number=0xFFFF00,
offset={x=0,y=10},
position={x=0.95,y=0.02},