Skip to content

Commit

Permalink
Directly access loaded entity list
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Feb 8, 2024
1 parent 01e3772 commit 1588317
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
org.gradle.jvmargs=-Xmx3G
# Mod Information
mod_id=mocreatures
mod_version=12.4.0
mod_version=12.4.1
maven_group=drzhark.mocreatures
archives_base_name=DrZharks-MoCreatures-Extended
# License Plugin
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/drzhark/mocreatures/MoCConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class MoCConstants {
public static final String MOD_ID = "mocreatures";
public static final String MOD_PREFIX = MOD_ID + ":";
public static final String MOD_NAME = "DrZhark's Mo'Creatures Extended";
public static final String MOD_VERSION = "12.4.0";
public static final String MOD_VERSION = "12.4.1";
public static final String MOD_ACCEPTED_VERSIONS = "[" + MOD_VERSION + "]";
public static final String MOD_DEPENDENCIES = "after:futuremc;after:thaumcraft;after:thermalexpansion;after:traverse";
public static final Integer DATAFIXER_VERSION = 1;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/drzhark/mocreatures/MoCTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -1200,9 +1200,9 @@ public static Entity findTheCorrectEntity(World world, UUID searchFor) {
return null;
}
Entity entity = null;
for (int i = 0; i < world.getLoadedEntityList().size(); i++) {
if (world.getLoadedEntityList().get(i) != null) {
Entity entity2 = (Entity) world.getLoadedEntityList().get(i);
for (int i = 0; i < world.loadedEntityList.size(); i++) {
if (world.loadedEntityList.get(i) != null) {
Entity entity2 = world.loadedEntityList.get(i);
if (entity2.getUniqueID().equals(searchFor)) {
entity = entity2;
}
Expand Down

0 comments on commit 1588317

Please sign in to comment.