Browse Source

Fix typos and type cast mismatch from pull request #31

TheYeti 13 years ago
parent
commit
1cfdfab2b7

+ 4 - 4
src/main/java/com/gmail/nossr50/skills/Fishing.java

@@ -4,7 +4,7 @@ import org.bukkit.Material;
 import org.bukkit.World;
 import org.bukkit.World;
 import org.bukkit.craftbukkit.entity.CraftItem;
 import org.bukkit.craftbukkit.entity.CraftItem;
 import org.bukkit.enchantments.Enchantment;
 import org.bukkit.enchantments.Enchantment;
-import org.bukkit.entity.*
+import org.bukkit.entity.*;
 import org.bukkit.event.player.PlayerFishEvent;
 import org.bukkit.event.player.PlayerFishEvent;
 import org.bukkit.inventory.ItemStack;
 import org.bukkit.inventory.ItemStack;
 import org.bukkit.material.Wool;
 import org.bukkit.material.Wool;
@@ -703,7 +703,7 @@ public class Fishing {
 				world.dropItemNaturally(le.getLocation(), new ItemStack(Material.LEATHER, 1));
 				world.dropItemNaturally(le.getLocation(), new ItemStack(Material.LEATHER, 1));
 			}
 			}
 			else{
 			else{
-				world.dropItemNaturally(le.getLocation(), new ItemStack(Material.RAW_BEEF, 1));)
+				world.dropItemNaturally(le.getLocation(), new ItemStack(Material.RAW_BEEF, 1));
 			}
 			}
 		}
 		}
 		
 		
@@ -737,7 +737,7 @@ public class Fishing {
 					world.dropItemNaturally(le.getLocation(), new ItemStack(Material.LEATHER, 1));
 					world.dropItemNaturally(le.getLocation(), new ItemStack(Material.LEATHER, 1));
 				}
 				}
 				else{
 				else{
-					world.dropItemNaturally(le.getLocation(), new ItemStack(Material.RAW_BEEF, 1));)
+					world.dropItemNaturally(le.getLocation(), new ItemStack(Material.RAW_BEEF, 1));
 				}
 				}
 			}
 			}
 			else{
 			else{
@@ -748,7 +748,7 @@ public class Fishing {
 		
 		
 		else if(le instanceof Squid)
 		else if(le instanceof Squid)
 		{
 		{
-			world.dropItemNaturally(le.getLocation(), new ItemStack(Material.getMaterial(351), 1, (byte)0, (byte)0)));
+			world.dropItemNaturally(le.getLocation(), new ItemStack(Material.getMaterial(351), 1, (byte)0, (byte)0));
 		}
 		}
 		
 		
 		else if(le instanceof Snowman){
 		else if(le instanceof Snowman){

+ 2 - 2
src/main/java/com/gmail/nossr50/skills/Repair.java

@@ -422,7 +422,7 @@ public class Repair {
 		}
 		}
 		return false;
 		return false;
 	}
 	}
-	public static short repairCalculate(Player player, short durability, short ramt){
+	public static short repairCalculate(Player player, short durability, int ramt){
 		PlayerProfile PP = Users.getProfile(player);
 		PlayerProfile PP = Users.getProfile(player);
 		float bonus = (PP.getSkillLevel(SkillType.REPAIR) / 500);
 		float bonus = (PP.getSkillLevel(SkillType.REPAIR) / 500);
 		bonus = (ramt * bonus);
 		bonus = (ramt * bonus);
@@ -438,7 +438,7 @@ public class Repair {
 	}
 	}
 	public static short getRepairAmount(ItemStack is, Player player){
 	public static short getRepairAmount(ItemStack is, Player player){
 		short durability = is.getDurability();
 		short durability = is.getDurability();
-		short ramt = 0;
+		int ramt = 0;
 		switch(is.getTypeId())
 		switch(is.getTypeId())
 		{
 		{
 		/*
 		/*