瀏覽代碼

Wolf summoning now correctly uses up the bones.

Now to figure out why Ocelot summoning isn't using up the fish.
GJ 13 年之前
父節點
當前提交
99bff1a4f9
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java

+ 4 - 2
src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java

@@ -260,8 +260,10 @@ public class mcPlayerListener implements Listener
 		
 		if(player.isSneaking() && mcPermissions.getInstance().taming(player) && (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK))
 		{
-			Taming.animalSummon(EntityType.OCELOT, player);
-			Taming.animalSummon(EntityType.WOLF, player);
+			if(is.getType().equals(Material.RAW_FISH))
+				Taming.animalSummon(EntityType.OCELOT, player);
+			if(is.getType().equals(Material.BONE))
+				Taming.animalSummon(EntityType.WOLF, player);
 		}
 		
 		//BLAST MINING