diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index 5a64682..d7e1581 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/plugin.yml b/src/plugin.yml index d2a7fa3..0b78896 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: TwosideKeeper main: sig.plugin.TwosideKeeper.TwosideKeeper -version: 3.7.3cr6 +version: 3.7.3cr7 commands: money: description: Tells the player the amount of money they are holding. diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java index d732cad..2aaa7c7 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java @@ -2560,7 +2560,7 @@ public class GenericFunctions { if (Math.random() <= repairamt%1) { repairamt++; } - if (p.getLocation().getY()>=0 && p.getLocation().getBlock().getLightFromSky()==0) { + if (p.getLocation().getY()>=0 && p.getLocation().getY()<=255 && p.getLocation().getBlock().getLightFromSky()==0) { repairamt/=2.0d; //TwosideKeeper.log("In Darkness.",2); } diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/MonsterDifficulty.java b/src/sig/plugin/TwosideKeeper/HelperStructures/MonsterDifficulty.java index ef0e7dd..116761c 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/MonsterDifficulty.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/MonsterDifficulty.java @@ -192,6 +192,7 @@ public enum MonsterDifficulty { } public List RandomizeDrops(double dropmult, boolean isBoss, boolean isRanger) { + TwosideKeeper.log(ChatColor.AQUA+"->Entering RandomizeDrops()", 1); List droplist = new ArrayList(); dropmult += 1; //Base dropmult is 1.0. if (Math.random() < dropmult % 1) @@ -276,9 +277,9 @@ public enum MonsterDifficulty { randomness = Math.random(); TwosideKeeper.log(ChatColor.DARK_GREEN+" Randomness is "+randomness, 1); if (randomness<=0.6) { - TwosideKeeper.log(ChatColor.DARK_GREEN+" Spawn a Mysterious Essence!", 1); switch (this) { case NORMAL: + TwosideKeeper.log(ChatColor.DARK_GREEN+" Spawn a Mysterious Essence!", 1); droplist.add(sig.plugin.TwosideKeeper.Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE)); break; } diff --git a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java index 63556c1..c40b22d 100644 --- a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java +++ b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java @@ -703,12 +703,12 @@ public class TwosideKeeper extends JavaPlugin implements Listener { }*/ for (int i3=0;i3=0 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { + p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().getY()<=255 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,20,1)); } } if (ArtifactAbility.containsEnchantment(ArtifactAbility.SHADOWWALKER, p.getEquipment().getItemInMainHand()) && - p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { + p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().getY()<=255 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,20,1)); //log("Apply speed. The light level here is "+p.getLocation().add(0,-1,0).getBlock().getLightLevel(),2); }