further fixed gem stuff!

This commit is contained in:
Mini-Chiss 2015-08-03 16:25:31 +02:00
parent 67fd0e2c1d
commit f350e4efe5

View File

@ -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);