Skip to content

Commit

Permalink
Change access to methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba6000 committed Jun 15, 2023
1 parent 0b32aa7 commit c2b9412
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import net.minecraft.entity.IEntityOwnable;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.monster.IMob;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
Expand Down Expand Up @@ -420,8 +419,8 @@ public void processEntitySpawn(EntityLivingBase entity) {
}
}

private boolean isClassAllowed(EntityLivingBase entity) {
if (entity instanceof EntityMob || (entity instanceof IMob)) {
public boolean isClassAllowed(EntityLivingBase entity) {
if ((entity instanceof IMob)) {
if (entity instanceof IEntityOwnable) {
return false;
}
Expand Down Expand Up @@ -462,7 +461,7 @@ private boolean checkEntityClassAllowed(EntityLivingBase entity) {
return result;
}

private boolean checkEntityClassForced(EntityLivingBase entity) {
public boolean checkEntityClassForced(EntityLivingBase entity) {
String entName = useSimpleEntityClassNames ? entity.getClass().getSimpleName() : getEntityNameSafe(entity);
if (classesForcedMap.containsKey(entName)) {
return classesForcedMap.get(entName);
Expand Down

0 comments on commit c2b9412

Please sign in to comment.