diff --git a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairCheckEvent.java b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairCheckEvent.java index 18bcc3f07..c6bf2cd56 100644 --- a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairCheckEvent.java +++ b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairCheckEvent.java @@ -8,12 +8,12 @@ import com.gmail.nossr50.datatypes.SkillType; public class McMMOPlayerRepairCheckEvent extends McMMOPlayerSkillEvent implements Cancellable{ - private int repairAmount; + private short repairAmount; private ItemStack repairMaterial; private ItemStack repairedObject; private boolean cancelled; - public McMMOPlayerRepairCheckEvent(Player player, int repairAmount, ItemStack repairMaterial, ItemStack repairedObject) { + public McMMOPlayerRepairCheckEvent(Player player, short repairAmount, ItemStack repairMaterial, ItemStack repairedObject) { super(player, SkillType.REPAIR); this.repairAmount = repairAmount; this.repairMaterial = repairMaterial; @@ -21,7 +21,7 @@ public class McMMOPlayerRepairCheckEvent extends McMMOPlayerSkillEvent implement this.cancelled = false; } - public int getRepairAmount() { + public short getRepairAmount() { return repairAmount; } diff --git a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairEvent.java b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairEvent.java index 283f83cc4..6623dd407 100644 --- a/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairEvent.java +++ b/src/main/java/com/gmail/nossr50/events/skills/McMMOPlayerRepairEvent.java @@ -7,20 +7,20 @@ import com.gmail.nossr50.datatypes.SkillType; public class McMMOPlayerRepairEvent extends McMMOPlayerSkillEvent{ - private ItemStack item; + private ItemStack repairedObject; private short repairAmount; - public McMMOPlayerRepairEvent(Player player, ItemStack item, short repairAmount) { + public McMMOPlayerRepairEvent(Player player, ItemStack repairedObject, short repairAmount) { super(player, SkillType.REPAIR); - this.item = item; + this.repairedObject = repairedObject; this.repairAmount = repairAmount; } - public ItemStack getItem() { - return item; + public ItemStack getRepairedObject() { + return repairedObject; } - public int getRepairAmount() { + public short getRepairAmount() { return repairAmount; } }