Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
Item prizes are not deleted by restoring inventory any more. Also:
Browse files Browse the repository at this point in the history
Inventory restored after losing.
  • Loading branch information
mkalus committed Jan 21, 2012
1 parent 75ebe62 commit a260e67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/de/beimax/simplespleef/game/GameStandard.java
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,9 @@ protected boolean checkGameOver() {
* called when game is over - get winners, etc.
*/
protected void gameOver() {
// possibly restore inventories
restoreAllInventories(); // done before paying prizes...

// determine winners
LinkedList<Spleefer> winners = new LinkedList<Spleefer>();
for (Spleefer spleefer : spleefers.get()) {
Expand Down

0 comments on commit a260e67

Please sign in to comment.