Fixed glitchy food

This commit is contained in:
Adam committed 2012-05-12 15:10:09 -04:00
1 parent ebde06137d
commit e20ea7c551
2 files changed
+2 -2

No files matched your search

@@ -92,7 +92,7 @@ public class PlayerListener extends EventListener
{
Player player = event.getPlayer();
PlayerInventory inv = player.getInventory();
if(event.getAction() == Action.RIGHT_CLICK_AIR)
if(event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK)
{
Material m = inv.getItemInHand().getType();
if(m == Material.BOW)
@@ -47,7 +47,7 @@ public class Backend
public static final int NOFALL_LIMIT = 5;
public static final int SPRINT_FOOD_MIN = 6;
public static final int EAT_MIN = 60;
public static final int EAT_MIN = 20;
public static final int HEAL_MIN = 35;
public static final int ANIMATION_MIN = 60;
public static final int CHAT_MIN = 100;