From 263d5a3451809d7842401decdd006ac6cbba78e8 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 10 Feb 2011 12:07:42 -0800 Subject: [PATCH] More fixes --- .../bukkit/nossr50/mcMMO/mcPlayerListener.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mcMMO/com/bukkit/nossr50/mcMMO/mcPlayerListener.java b/mcMMO/com/bukkit/nossr50/mcMMO/mcPlayerListener.java index 4924c32ce..0772a61e0 100644 --- a/mcMMO/com/bukkit/nossr50/mcMMO/mcPlayerListener.java +++ b/mcMMO/com/bukkit/nossr50/mcMMO/mcPlayerListener.java @@ -90,13 +90,13 @@ public class mcPlayerListener extends PlayerListener { if(is.getTypeId() == 297){ if(mcUsers.getProfile(player).getHerbalismInt() >= 50 && mcUsers.getProfile(player).getHerbalismInt() < 150){ player.setHealth(player.getHealth() + 2); - } else if (mcUsers.getProfile(player).getHerbalismInt() <= 150){ - player.setHealth(player.getHealth() + 4); } else if (mcUsers.getProfile(player).getHerbalismInt() <= 250){ - player.setHealth(player.getHealth() + 5); + player.setHealth(player.getHealth() + 4); } else if (mcUsers.getProfile(player).getHerbalismInt() <= 400){ + player.setHealth(player.getHealth() + 5); + } else if (mcUsers.getProfile(player).getHerbalismInt() < 750){ player.setHealth(player.getHealth() + 6); - } else if (mcUsers.getProfile(player).getHerbalismInt() <= 750){ + } else if (mcUsers.getProfile(player).getHerbalismInt() >= 750){ player.setHealth(player.getHealth() + 8); } } @@ -104,13 +104,13 @@ public class mcPlayerListener extends PlayerListener { if(is.getTypeId() == 282){ if(mcUsers.getProfile(player).getHerbalismInt() >= 50 && mcUsers.getProfile(player).getHerbalismInt() < 150){ player.setHealth(player.getHealth() + 1); - } else if (mcUsers.getProfile(player).getHerbalismInt() <= 150){ - player.setHealth(player.getHealth() + 2); } else if (mcUsers.getProfile(player).getHerbalismInt() <= 250){ - player.setHealth(player.getHealth() + 3); + player.setHealth(player.getHealth() + 2); } else if (mcUsers.getProfile(player).getHerbalismInt() <= 400){ + player.setHealth(player.getHealth() + 3); + } else if (mcUsers.getProfile(player).getHerbalismInt() < 750){ player.setHealth(player.getHealth() + 4); - } else if (mcUsers.getProfile(player).getHerbalismInt() <= 750){ + } else if (mcUsers.getProfile(player).getHerbalismInt() >= 750){ player.setHealth(player.getHealth() + 6); } }