Add new /forge entity list command for displaying a list of all entities in world.

As well as tracking down chunks with large amounts of entities.
This commit is contained in:
LexManos committed 2017-09-25 12:56:09 -07:00
1 parent 21e4803947
commit 303a775fc3
3 files changed
+107 -2

No files matched your search

@@ -572,7 +572,7 @@ public class GameData
RegistryEvent.MissingMappings<?> event = reg.getMissingEvent(name, m.getValue());
MinecraftForge.EVENT_BUS.post(event);
List<MissingMappings.Mapping<?>> lst = event.getAllMappings().stream().filter(e -> e.getAction() == MissingMappings.Action.DEFAULT).collect(Collectors.toList());
List<MissingMappings.Mapping<?>> lst = event.getAllMappings().stream().filter(e -> e.getAction() == MissingMappings.Action.DEFAULT).sorted((a, b) -> a.toString().compareTo(b.toString())).collect(Collectors.toList());
if (!lst.isEmpty())
{
FMLLog.log.error("Unidentified mapping from registry {}", name);