Skip to content

Commit

Permalink
- SMH
Browse files Browse the repository at this point in the history
  • Loading branch information
DaedalusGame committed Mar 30, 2019
1 parent e9e2c9d commit a9e9bf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
6 changes: 4 additions & 2 deletions src/main/java/soot/handler/GolemHandler.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package soot.handler;

import it.unimi.dsi.fastutil.objects.Object2BooleanOpenHashMap;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.init.MobEffects;
Expand All @@ -13,6 +12,9 @@
import soot.Config;
import teamroots.embers.RegistryManager;

import java.util.HashMap;
import java.util.Map;

public class GolemHandler {
static Map<Class,Boolean> golemClassCache = new HashMap<>();

Expand Down Expand Up @@ -44,7 +46,7 @@ public static void onEntityTick(LivingEvent.LivingUpdateEvent event)
private static boolean isGolem(EntityLivingBase target) {
Class<? extends EntityLivingBase> targetClass = target.getClass();
if(golemClassCache.containsKey(targetClass)) {
return golemClassCache.getBoolean(targetClass);
return golemClassCache.get(targetClass);
}
else {
ResourceLocation location = EntityList.getKey(target);
Expand Down
28 changes: 0 additions & 28 deletions src/main/java/soot/util/CTUtil.java

This file was deleted.

0 comments on commit a9e9bf4

Please sign in to comment.