Fixed: FireTicks haven't reset

This commit is contained in:
Grafe 2013-01-11 03:46:57 +01:00
parent 5394d7cf8f
commit 7a93179fb5
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
name: DungeonsXL
version: 2.9
version: 0.7.5
main: com.dre.dungeonsxl.P
authors: [Frank Baumann]
softdepend: [Vault]

View File

@ -38,6 +38,7 @@ public class DPlayer {
public int oldExp;
public int oldHealth;
public int oldFoodLevel;
public int oldFireTicks;
public GameMode oldGamemode;
public boolean isEditing;
@ -56,6 +57,7 @@ public class DPlayer {
public Inventory treasureInv = P.p.getServer().createInventory(player, 45, "Belohnungen");
public DPlayer(Player player, World world, Location teleport, boolean isEditing){
players.add(this);
this.player=player;
@ -69,6 +71,7 @@ public class DPlayer {
this.oldFoodLevel=player.getFoodLevel();
this.oldGamemode=player.getGameMode();
this.oldLvl=player.getLevel();
this.oldFireTicks=player.getFireTicks();
this.player.teleport(teleport);
this.player.getInventory().clear();
@ -106,7 +109,7 @@ public class DPlayer {
this.player.setHealth(oldHealth);
this.player.setFoodLevel(oldFoodLevel);
this.player.setGameMode(oldGamemode);
this.player.setFireTicks(oldFireTicks);
if(this.isEditing){
EditWorld eworld=EditWorld.get(this.world);