replace with explicit types
This commit is contained in:
1 parent
b1c934da28
commit
5a415c854a
2 files changed
+3
-3
No files matched your search
@@ -291,7 +291,7 @@ public class NaturalSpawnerMixin
|
|||||||
{
|
{
|
||||||
SpawnReporter.first_chunk_marker.add(entityCategory);
|
SpawnReporter.first_chunk_marker.add(entityCategory);
|
||||||
//first chunk with spawn eligibility for that category
|
//first chunk with spawn eligibility for that category
|
||||||
var key = Pair.of(dim, entityCategory);
|
Pair<ResourceKey<Level>, MobCategory> key = Pair.of(dim, entityCategory);
|
||||||
|
|
||||||
|
|
||||||
int spawnTries = SpawnReporter.spawn_tries.get(entityCategory);
|
int spawnTries = SpawnReporter.spawn_tries.get(entityCategory);
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public abstract class ServerChunkCacheMixin implements ServerChunkManagerInterfa
|
|||||||
SpawnReporter.first_chunk_marker = new HashSet<>();
|
SpawnReporter.first_chunk_marker = new HashSet<>();
|
||||||
for (MobCategory cat : MobCategory.values())
|
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.put(key,
|
||||||
SpawnReporter.overall_spawn_ticks.get(key)+
|
SpawnReporter.overall_spawn_ticks.get(key)+
|
||||||
SpawnReporter.spawn_tries.get(cat));
|
SpawnReporter.spawn_tries.get(cat));
|
||||||
@@ -73,7 +73,7 @@ public abstract class ServerChunkCacheMixin implements ServerChunkManagerInterfa
|
|||||||
for (MobCategory cat: MobCategory.values())
|
for (MobCategory cat: MobCategory.values())
|
||||||
{
|
{
|
||||||
ResourceKey<Level> dim = level.dimension(); // getDimensionType;
|
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);
|
int spawnTries = SpawnReporter.spawn_tries.get(cat);
|
||||||
if (!SpawnReporter.local_spawns.containsKey(cat))
|
if (!SpawnReporter.local_spawns.containsKey(cat))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user