diff --git a/build.gradle b/build.gradle index 67b9518..573b18b 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ compileJava { sourceCompatibility = '1.8' targetCompatibility = '1.8' } -version = "1.0.1" +version = "1.0.2" group= "io.github.symt" archivesBaseName = "ZealotCounter" diff --git a/src/main/java/io/github/symt/EventHandler.java b/src/main/java/io/github/symt/EventHandler.java index dc14d4f..e086f06 100644 --- a/src/main/java/io/github/symt/EventHandler.java +++ b/src/main/java/io/github/symt/EventHandler.java @@ -31,7 +31,6 @@ public class EventHandler { private FontRenderer renderer = Minecraft.getMinecraft().fontRendererObj; private int attackedEntity = -1; private int prevEntity = -1; - private long lastHit = 0; @SubscribeEvent(priority = EventPriority.HIGH) public void onMobDeath(LivingDeathEvent event) { @@ -42,7 +41,6 @@ public void onMobDeath(LivingDeathEvent event) { && (event.entity.getName().substring(2).equals("Enderman") || event.entity instanceof EntityEnderman) && prevEntity != event.entity.getEntityId() - && System.currentTimeMillis() - lastHit < 150 && ZealotCounter.dragonsNest) { prevEntity = event.entity.getEntityId(); ZealotCounter.zealotCount++; @@ -56,7 +54,6 @@ public void onAttack(AttackEntityEvent event) { (event.target.getName().substring(2).equals("Enderman") || event.target instanceof EntityEnderman) && ZealotCounter.dragonsNest) { attackedEntity = event.target.getEntityId(); - lastHit = System.currentTimeMillis(); } } diff --git a/src/main/java/io/github/symt/ZealotCounter.java b/src/main/java/io/github/symt/ZealotCounter.java index 9324414..23b0d09 100644 --- a/src/main/java/io/github/symt/ZealotCounter.java +++ b/src/main/java/io/github/symt/ZealotCounter.java @@ -29,7 +29,7 @@ public class ZealotCounter { static final String MODID = "ZealotCounter"; - static final String VERSION = "1.0.1"; + static final String VERSION = "1.0.2"; private static final String ZEALOT_PATH = "zealotcounter.dat"; static boolean loggedIn = false; static boolean dragonsNest = false;