Fix a few IDE warnings (#1345)

This commit is contained in:
altrisi authored and GitHub committed 2022-02-20 19:16:12 +01:00
1 parent e011f65e75
commit b1c934da28
19 files changed
+225 -350

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())
{
Pair key = Pair.of(dim, cat);
var 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;
Pair key = Pair.of(dim, cat);
var key = Pair.of(dim, cat);
int spawnTries = SpawnReporter.spawn_tries.get(cat);
if (!SpawnReporter.local_spawns.containsKey(cat))
{