mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-08 09:17:46 +01:00
Fix rewards
This commit is contained in:
parent
f58063a3b2
commit
b0324f9da8
@ -521,13 +521,11 @@ public class DPlayer {
|
||||
}
|
||||
|
||||
// Belohnung
|
||||
if ( !isInTestMode()) {// Nur wenn man nicht am Testen ist
|
||||
if (gameWorld.getGame().getType().hasRewards()) {
|
||||
if (finished) {
|
||||
if (gameWorld.getGame() != null) {
|
||||
if (gameWorld.getGame().getType().hasRewards()) {
|
||||
for (Reward reward : gameWorld.getConfig().getRewards()) {
|
||||
reward.giveTo(player);
|
||||
}
|
||||
for (Reward reward : gameWorld.getConfig().getRewards()) {
|
||||
reward.giveTo(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user