Minor fixes/changes
This commit is contained in:
parent
efa65da721
commit
24749b8ccc
3 changed files with 10 additions and 2 deletions
|
@ -60,6 +60,12 @@ public class ClientProxy extends CommonProxy
|
|||
battleGui.turnEnd();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void battleStarted()
|
||||
{
|
||||
setBattleGuiAsGui();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void battleEnded()
|
||||
{
|
||||
|
@ -68,6 +74,7 @@ public class ClientProxy extends CommonProxy
|
|||
Minecraft.getMinecraft().displayGuiScreen(null);
|
||||
Minecraft.getMinecraft().setIngameFocus();
|
||||
});
|
||||
stopMusic();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -17,6 +17,8 @@ public class CommonProxy
|
|||
|
||||
public void battleGuiTurnEnd() {}
|
||||
|
||||
public void battleStarted() {}
|
||||
|
||||
public void battleEnded() {}
|
||||
|
||||
public void postInit() {}
|
||||
|
|
|
@ -232,7 +232,7 @@ public class PacketBattleMessage implements IMessage
|
|||
{
|
||||
TurnBasedMinecraftMod.currentBattle = new Battle(message.amount, null, null, false);
|
||||
}
|
||||
TurnBasedMinecraftMod.commonProxy.setBattleGuiAsGui();
|
||||
TurnBasedMinecraftMod.commonProxy.battleStarted();
|
||||
if(message.custom.isEmpty())
|
||||
{
|
||||
TurnBasedMinecraftMod.commonProxy.typeEnteredBattle(null);
|
||||
|
@ -258,7 +258,6 @@ public class PacketBattleMessage implements IMessage
|
|||
case ENDED:
|
||||
TurnBasedMinecraftMod.commonProxy.displayString("Battle has ended!");
|
||||
TurnBasedMinecraftMod.commonProxy.battleEnded();
|
||||
TurnBasedMinecraftMod.commonProxy.stopMusic();
|
||||
break;
|
||||
case ATTACK:
|
||||
TurnBasedMinecraftMod.commonProxy.displayString(from + " attacked " + to + " and dealt " + message.amount + " damage!");
|
||||
|
|
Loading…
Reference in a new issue