replace with explicit types

This commit is contained in:
gnembon committed 2022-02-20 19:18:49 +01:00
1 parent b1c934da28
commit 5a415c854a
2 files changed
+3 -3

No files matched your search

@@ -53,7 +53,7 @@ public abstract class ServerChunkCacheMixin implements ServerChunkManagerInterfa
SpawnReporter.first_chunk_marker = new HashSet<>();
for (MobCategory cat : MobCategory.values())
{
var key = Pair.of(dim, cat);
Pair<ResourceKey<Level>, MobCategory> key = Pair.of(dim, cat);
SpawnReporter.overall_spawn_ticks.put(key,
SpawnReporter.overall_spawn_ticks.get(key)+
SpawnReporter.spawn_tries.get(cat));
@@ -73,7 +73,7 @@ public abstract class ServerChunkCacheMixin implements ServerChunkManagerInterfa
for (MobCategory cat: MobCategory.values())
{
ResourceKey<Level> dim = level.dimension(); // getDimensionType;
var key = Pair.of(dim, cat);
Pair<ResourceKey<Level>, MobCategory> key = Pair.of(dim, cat);
int spawnTries = SpawnReporter.spawn_tries.get(cat);
if (!SpawnReporter.local_spawns.containsKey(cat))
{