Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
Removing timing system because that might be causing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
symt committed Dec 3, 2019
1 parent 8ef7e21 commit 70078d9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 0 additions & 3 deletions src/main/java/io/github/symt/EventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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++;
Expand All @@ -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();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/symt/ZealotCounter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 70078d9

Please sign in to comment.