From d2cb792b22f2a09da3d43ec0a7acb9d7b0ac8e59 Mon Sep 17 00:00:00 2001 From: Frank Baumann Date: Wed, 7 Nov 2012 00:47:50 +0100 Subject: [PATCH] Changed spawnCreature to spawnEntity --- DungeonsXL/src/com/dre/dungeonsxl/DPlayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DungeonsXL/src/com/dre/dungeonsxl/DPlayer.java b/DungeonsXL/src/com/dre/dungeonsxl/DPlayer.java index 08065e2e..abd14ab0 100644 --- a/DungeonsXL/src/com/dre/dungeonsxl/DPlayer.java +++ b/DungeonsXL/src/com/dre/dungeonsxl/DPlayer.java @@ -293,7 +293,7 @@ public class DPlayer { } if(dclass.hasDog){ - this.wolf=(Wolf) this.world.spawnCreature(this.player.getLocation(), EntityType.WOLF); + this.wolf=(Wolf) this.world.spawnEntity(this.player.getLocation(), EntityType.WOLF); this.wolf.setTamed(true); this.wolf.setOwner(this.player); this.wolf.setHealth(this.wolf.getMaxHealth()); @@ -462,7 +462,7 @@ public class DPlayer { if(dplayer.wolf!=null){ if(dplayer.wolf.isDead()){ if(dplayer.wolfRespawnTime<=0){ - dplayer.wolf=(Wolf) dplayer.world.spawnCreature(dplayer.player.getLocation(), EntityType.WOLF); + dplayer.wolf=(Wolf) dplayer.world.spawnEntity(dplayer.player.getLocation(), EntityType.WOLF); dplayer.wolf.setTamed(true); dplayer.wolf.setOwner(dplayer.player); dplayer.wolfRespawnTime=30;