further fixed gem stuff!
This commit is contained in:
parent
67fd0e2c1d
commit
f350e4efe5
@ -117,9 +117,6 @@ public class GameGemManager implements Listener
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void GameStateChange(GameStateChangeEvent event)
|
||||
{
|
||||
if (!Manager.IsRewardGems())
|
||||
return;
|
||||
|
||||
if (event.GetState() != GameState.Dead)
|
||||
return;
|
||||
|
||||
@ -129,12 +126,12 @@ public class GameGemManager implements Listener
|
||||
|
||||
public void RewardGems(Game game, Player player, boolean give)
|
||||
{
|
||||
if (!Manager.IsRewardGems())
|
||||
return;
|
||||
|
||||
//Inform Gems
|
||||
AnnounceGems(game, player, game.GetPlayerGems().get(player), give);
|
||||
|
||||
if (!Manager.IsRewardGems())
|
||||
return;
|
||||
|
||||
//Give Gems
|
||||
if (give)
|
||||
GiveGems(game, player, game.GetPlayerGems().remove(player), game.GemMultiplier);
|
||||
|
Loading…
Reference in New Issue
Block a user