Allow cooked versions of foods to be broken down

This commit is contained in:
Spencer 2017-12-31 20:45:55 -05:00 committed by Alexander Meech
parent 0bb75c3a8f
commit 81d7cb144b

View File

@ -101,11 +101,11 @@ public class PerkItemBreakdown extends Perk
{ {
maxReturn = 2; maxReturn = 2;
} }
else if (item.getType() == Material.RAW_CHICKEN) else if (item.getType() == Material.RAW_CHICKEN || item.getType() == Material.COOKED_CHICKEN)
{ {
maxReturn = 2; maxReturn = 2;
} }
else if (item.getType() == Material.RAW_BEEF) else if (item.getType() == Material.RAW_BEEF || item.getType() == Material.COOKED_BEEF)
{ {
maxReturn = 2; maxReturn = 2;
} }
@ -165,11 +165,11 @@ public class PerkItemBreakdown extends Perk
{ {
returnMat = Material.STICK; returnMat = Material.STICK;
} }
else if (item.getType() == Material.RAW_CHICKEN) else if (item.getType() == Material.RAW_CHICKEN || item.getType() == Material.COOKED_CHICKEN)
{ {
returnMat = Material.FEATHER; returnMat = Material.FEATHER;
} }
else if (item.getType() == Material.RAW_BEEF) else if (item.getType() == Material.RAW_BEEF || item.getType() == Material.COOKED_BEEF)
{ {
returnMat = Material.LEATHER; returnMat = Material.LEATHER;
} }
@ -204,15 +204,4 @@ public class PerkItemBreakdown extends Perk
+ ItemStackFactory.Instance.GetName(returnMat, (byte) 0, true)) + ItemStackFactory.Instance.GetName(returnMat, (byte) 0, true))
+ C.mBody + "!")); + C.mBody + "!"));
} }
@EventHandler
public void onBlockBreak(BlockBreakEvent event)
{
if (event.getPlayer() == null || event.getBlock() == null)
{
return;
}
}
} }