mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 06:50:46 +00:00
shit
This commit is contained in:
parent
6011e9df98
commit
9707c4c961
@ -228,6 +228,7 @@ public class FalloutConfigJSON {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private MetaBlock chooseRandomOutcome(Triplet<Block, Integer, Integer>[] blocks) {
|
private MetaBlock chooseRandomOutcome(Triplet<Block, Integer, Integer>[] blocks) {
|
||||||
|
if(blocks == null) return null;
|
||||||
|
|
||||||
int weight = 0;
|
int weight = 0;
|
||||||
|
|
||||||
|
|||||||
@ -64,8 +64,8 @@ public class EntityFalloutRain extends EntityExplosionChunkloading {
|
|||||||
int chunkPosX = (int) (chunkPos & Integer.MAX_VALUE);
|
int chunkPosX = (int) (chunkPos & Integer.MAX_VALUE);
|
||||||
int chunkPosZ = (int) (chunkPos >> 32 & Integer.MAX_VALUE);
|
int chunkPosZ = (int) (chunkPos >> 32 & Integer.MAX_VALUE);
|
||||||
boolean biomeModified = false;
|
boolean biomeModified = false;
|
||||||
for(int x = chunkPosX << 4; x <= (chunkPosX << 4) + 16; x++) {
|
for(int x = chunkPosX << 4; x < (chunkPosX << 4) + 16; x++) {
|
||||||
for(int z = chunkPosZ << 4; z <= (chunkPosZ << 4) + 16; z++) {
|
for(int z = chunkPosZ << 4; z < (chunkPosZ << 4) + 16; z++) {
|
||||||
double percent = Math.hypot(x - posX, z - posZ) * 100 / getScale();
|
double percent = Math.hypot(x - posX, z - posZ) * 100 / getScale();
|
||||||
stomp(x, z, percent);
|
stomp(x, z, percent);
|
||||||
BiomeGenBase biome = getBiomeChange(percent, getScale(), worldObj.getBiomeGenForCoords(x, z));
|
BiomeGenBase biome = getBiomeChange(percent, getScale(), worldObj.getBiomeGenForCoords(x, z));
|
||||||
@ -82,8 +82,8 @@ public class EntityFalloutRain extends EntityExplosionChunkloading {
|
|||||||
int chunkPosX = (int) (chunkPos & Integer.MAX_VALUE);
|
int chunkPosX = (int) (chunkPos & Integer.MAX_VALUE);
|
||||||
int chunkPosZ = (int) (chunkPos >> 32 & Integer.MAX_VALUE);
|
int chunkPosZ = (int) (chunkPos >> 32 & Integer.MAX_VALUE);
|
||||||
boolean biomeModified = false;
|
boolean biomeModified = false;
|
||||||
for(int x = chunkPosX << 4; x <= (chunkPosX << 4) + 16; x++) {
|
for(int x = chunkPosX << 4; x < (chunkPosX << 4) + 16; x++) {
|
||||||
for(int z = chunkPosZ << 4; z <= (chunkPosZ << 4) + 16; z++) {
|
for(int z = chunkPosZ << 4; z < (chunkPosZ << 4) + 16; z++) {
|
||||||
double distance = Math.hypot(x - posX, z - posZ);
|
double distance = Math.hypot(x - posX, z - posZ);
|
||||||
if(distance <= getScale()) {
|
if(distance <= getScale()) {
|
||||||
double percent = distance * 100 / getScale();
|
double percent = distance * 100 / getScale();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user