Fix a few IDE warnings (#1345)
This commit is contained in:
1 parent
e011f65e75
commit
b1c934da28
19 files changed
+225
-350
No files matched your search
@@ -291,7 +291,7 @@ public class NaturalSpawnerMixin
|
||||
{
|
||||
SpawnReporter.first_chunk_marker.add(entityCategory);
|
||||
//first chunk with spawn eligibility for that category
|
||||
Pair key = Pair.of(dim, entityCategory);
|
||||
var key = Pair.of(dim, entityCategory);
|
||||
|
||||
|
||||
int spawnTries = SpawnReporter.spawn_tries.get(entityCategory);
|
||||
|
||||
@@ -12,7 +12,6 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.Direction;
|
||||
@@ -94,10 +93,7 @@ public abstract class RedstoneWireBlock_fastMixin implements RedstoneWireBlockIn
|
||||
set.add(blockPos_1.relative(direction));
|
||||
}
|
||||
|
||||
Iterator var10 = set.iterator();
|
||||
|
||||
while (var10.hasNext()) {
|
||||
BlockPos blockPos = (BlockPos) var10.next();
|
||||
for (BlockPos blockPos : set) {
|
||||
world_1.updateNeighborsAt(blockPos, blockState_1.getBlock());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user