mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-09 20:31:28 +01:00
Changed spawnCreature to spawnEntity
This commit is contained in:
parent
90a88f7875
commit
d2cb792b22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user