Fix resource gen giving incorrect item amounts
This commit is contained in:
parent
77fee0f567
commit
cff9b1749b
|
@ -24,8 +24,8 @@ import mineplex.core.updater.event.UpdateEvent;
|
|||
import nautilus.game.arcade.game.GameTeam;
|
||||
import nautilus.game.arcade.game.games.cakewars.CakeModule;
|
||||
import nautilus.game.arcade.game.games.cakewars.CakeWars;
|
||||
import nautilus.game.arcade.game.games.cakewars.shop.CakeResource;
|
||||
import nautilus.game.arcade.game.games.cakewars.shop.CakeNetherItem;
|
||||
import nautilus.game.arcade.game.games.cakewars.shop.CakeResource;
|
||||
import nautilus.game.arcade.game.games.cakewars.team.CakeTeam;
|
||||
|
||||
public class CakeSpawnerModule extends CakeModule
|
||||
|
@ -146,8 +146,6 @@ public class CakeSpawnerModule extends CakeModule
|
|||
|
||||
CakeTeam cakeTeam = _game.getCakeTeamModule().getCakeTeam(team);
|
||||
|
||||
amount += cakeTeam.getUpgrades().get(CakeNetherItem.RESOURCE);
|
||||
|
||||
ItemStack itemStack = resource.getItemStack().clone();
|
||||
itemStack.setAmount(amount);
|
||||
Location location = cakeTeam.getGenerator();
|
||||
|
|
|
@ -188,8 +188,8 @@ public class OPCakeWars extends CakeWars
|
|||
return -1;
|
||||
}
|
||||
|
||||
// 1.5 seems like a low number to increase by, but all upgrades, including Resource Generator are maxed out by default.
|
||||
return (int) (current * 1.5);
|
||||
// 2 seems like a low number to increase by, but all upgrades, including Resource Generator are maxed out by default.
|
||||
return current * 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue