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)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void GameStateChange(GameStateChangeEvent event)
|
public void GameStateChange(GameStateChangeEvent event)
|
||||||
{
|
{
|
||||||
if (!Manager.IsRewardGems())
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (event.GetState() != GameState.Dead)
|
if (event.GetState() != GameState.Dead)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -129,12 +126,12 @@ public class GameGemManager implements Listener
|
|||||||
|
|
||||||
public void RewardGems(Game game, Player player, boolean give)
|
public void RewardGems(Game game, Player player, boolean give)
|
||||||
{
|
{
|
||||||
if (!Manager.IsRewardGems())
|
|
||||||
return;
|
|
||||||
|
|
||||||
//Inform Gems
|
//Inform Gems
|
||||||
AnnounceGems(game, player, game.GetPlayerGems().get(player), give);
|
AnnounceGems(game, player, game.GetPlayerGems().get(player), give);
|
||||||
|
|
||||||
|
if (!Manager.IsRewardGems())
|
||||||
|
return;
|
||||||
|
|
||||||
//Give Gems
|
//Give Gems
|
||||||
if (give)
|
if (give)
|
||||||
GiveGems(game, player, game.GetPlayerGems().remove(player), game.GemMultiplier);
|
GiveGems(game, player, game.GetPlayerGems().remove(player), game.GemMultiplier);
|
||||||
|
Loading…
Reference in New Issue
Block a user