Skip to content

Commit

Permalink
Fix loaded entity list query
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Sep 9, 2017
1 parent 62d8095 commit d03c872
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public EntityCoupleableRollingStock findByUUID(UUID uuid) {
// May want to cache this if it happens a lot
//List<EntityCoupleableRollingStock> elist = world.getEntitiesWithinAABB(EntityCoupleableRollingStock.class, this.getCollisionBoundingBox().grow(ImmersiveRailroading.ENTITY_SYNC_DISTANCE));
//for (Object e : elist) {
for (Object e : world.getLoadedEntityList()) {
for (Object e : world.loadedEntityList) {
if (e instanceof EntityCoupleableRollingStock) {
EntityCoupleableRollingStock train = (EntityCoupleableRollingStock) e;
if (train.getPersistentID().equals(uuid)) {
Expand Down

0 comments on commit d03c872

Please sign in to comment.