github what made you think i wanted to commit only the additions???

This commit is contained in:
BallOfEnergy 2025-11-09 22:51:21 -06:00
parent 252659bdf0
commit ada5ccbf77
No known key found for this signature in database
GPG Key ID: EE45037B81C2D117
3 changed files with 7 additions and 18 deletions

View File

@ -19,8 +19,7 @@ import net.minecraftforge.event.world.WorldEvent;
* @author hbm
*/
public class ChunkRadiationHandler3D extends ChunkRadiationHandler {
private HashMap<World, ThreeDimRadiationPerWorld> perWorld = new HashMap();
private Map<World, ThreeDimRadiationPerWorld> perWorld = new HashMap<>();
@Override @Untested
@ -74,9 +73,7 @@ public class ChunkRadiationHandler3D extends ChunkRadiationHandler {
public void updateSystem() {
for(Entry<World, ThreeDimRadiationPerWorld> entry : perWorld.entrySet()) {
HashMap<ChunkCoordIntPair, Float[]> radiation = entry.getValue().radiation;
HashMap<ChunkCoordIntPair, Float[]> buff = new HashMap(radiation);
Map<ChunkCoordIntPair, Float[]> radiation = entry.getValue().radiation;
Map<ChunkCoordIntPair, Float[]> buff = new HashMap<>(radiation);
radiation.clear();
@ -186,7 +183,6 @@ public class ChunkRadiationHandler3D extends ChunkRadiationHandler {
}
public static class ThreeDimRadiationPerWorld {
public Map<ChunkCoordIntPair, Float[]> radiation = new HashMap<>();
}
}

View File

@ -35,8 +35,7 @@ import net.minecraftforge.event.world.WorldEvent;
public class ChunkRadiationHandlerNT extends ChunkRadiationHandler {
/* once i have to start debugging this, even my nightmares will start shitting themselves */
private static HashMap<World, WorldRadiationData> worldMap = new HashMap();
private static Map<World, WorldRadiationData> worldMap = new HashMap<>();
@Override
@ -728,17 +727,13 @@ public class ChunkRadiationHandlerNT extends ChunkRadiationHandler {
public static class WorldRadiationData {
public World world;
private Set<BlockPos> dirtyChunks = new HashSet();
private Set<BlockPos> dirtyChunks2 = new HashSet();
private Set<BlockPos> dirtyChunks = new HashSet<>();
private Set<BlockPos> dirtyChunks2 = new HashSet<>();
private boolean iteratingDirty = false;
public Set<RadPocket> activePockets = new HashSet();
public HashMap<ChunkCoordIntPair, ChunkRadiationStorage> data = new HashMap();
public Set<RadPocket> activePockets = new HashSet<>();
public Map<ChunkCoordIntPair, ChunkRadiationStorage> data = new HashMap<>();
public WorldRadiationData(World world) {
this.world = world;
}

View File

@ -45,8 +45,7 @@ import net.minecraftforge.event.world.WorldEvent;
*
*/
public class ChunkRadiationHandlerPRISM extends ChunkRadiationHandler {
public ConcurrentHashMap<World, RadPerWorld> perWorld = new ConcurrentHashMap();
public Map<World, RadPerWorld> perWorld = new ConcurrentHashMap<>();
public static int cycles = 0;
@ -173,8 +172,7 @@ public class ChunkRadiationHandlerPRISM extends ChunkRadiationHandler {
}
}
}
public static final HashMap<ChunkCoordIntPair, SubChunk[]> newAdditions = new HashMap();
public static final Map<ChunkCoordIntPair, SubChunk[]> newAdditions = new HashMap<>();
@Override