Skip to content

Commit

Permalink
Fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Abwasserrohr committed Dec 19, 2018
1 parent c460471 commit 0c9ca55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SkyBlock/SKYBLOCK.SK/Functions/hoppercounter.sk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function hoppercounter(p:player,action:text,amount:integer=1) :: boolean:
#
# > Check if a upgradeable system is needed or not:
if {_maxhopper} is not {_defaulthopper}:
set {_lvl} to {SB::island::%{_locx}%_%{_locy}%_%{_locz}%::hopperupgrade}
set {_lvl} to {SB::island::%{_x}%_%{_y}%_%{_z}%::hopperupgrade}
#
# > Calculate how much we can upgrade the hoppers until the maximum is reached.
set {_upgradeablehopper} to ({_maxhopper} - {_defaulthopper})
Expand All @@ -57,7 +57,7 @@ function hoppercounter(p:player,action:text,amount:integer=1) :: boolean:
set {_uuid} to uuid of {_p}
set {_lang} to {SK::lang::%{_uuid}%}
set {_msg} to {SB::lang::bc::islandhopperlimitinfo::%{_lang}%}
replace all "<size>" with "" in {_msg}
replace all "<size>" with "%{_hopper}%" in {_msg}
message "%{SB::lang::prefix::%{_lang}%}% %{_msg}%" to {_p}
return false
else:
Expand Down

0 comments on commit 0c9ca55

Please sign in to comment.