소스 검색

Removed deprecated function in 1.2.5-R5

GJ 13 년 전
부모
커밋
42a1fdf2df
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java

+ 1 - 2
src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java

@@ -55,8 +55,7 @@ public class CallOfTheWildEventHandler {
     }
 
     protected void spawnCreature() {
-//        LivingEntity entity = (LivingEntity) player.getWorld().spawnEntity(player.getLocation(), type);
-        LivingEntity entity = player.getWorld().spawnCreature(player.getLocation(), type);
+        LivingEntity entity = (LivingEntity) player.getWorld().spawnEntity(player.getLocation(), type);
         entity.setMetadata("mcmmoSummoned", new FixedMetadataValue(mcMMO.p, true));
 
         ((Tameable) entity).setOwner(player);