Skip to content

Commit

Permalink
shit
Browse files Browse the repository at this point in the history
  • Loading branch information
HbmMods committed Aug 14, 2024
1 parent 6011e9d commit 9707c4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/hbm/config/FalloutConfigJSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public boolean eval(World world, int x, int y, int z, Block b, int meta, double
}

private MetaBlock chooseRandomOutcome(Triplet<Block, Integer, Integer>[] blocks) {
if(blocks == null) return null;

int weight = 0;

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/hbm/entity/effect/EntityFalloutRain.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public void onUpdate() {
int chunkPosX = (int) (chunkPos & Integer.MAX_VALUE);
int chunkPosZ = (int) (chunkPos >> 32 & Integer.MAX_VALUE);
boolean biomeModified = false;
for(int x = chunkPosX << 4; x <= (chunkPosX << 4) + 16; x++) {
for(int z = chunkPosZ << 4; z <= (chunkPosZ << 4) + 16; z++) {
for(int x = chunkPosX << 4; x < (chunkPosX << 4) + 16; x++) {
for(int z = chunkPosZ << 4; z < (chunkPosZ << 4) + 16; z++) {
double percent = Math.hypot(x - posX, z - posZ) * 100 / getScale();
stomp(x, z, percent);
BiomeGenBase biome = getBiomeChange(percent, getScale(), worldObj.getBiomeGenForCoords(x, z));
Expand All @@ -82,8 +82,8 @@ public void onUpdate() {
int chunkPosX = (int) (chunkPos & Integer.MAX_VALUE);
int chunkPosZ = (int) (chunkPos >> 32 & Integer.MAX_VALUE);
boolean biomeModified = false;
for(int x = chunkPosX << 4; x <= (chunkPosX << 4) + 16; x++) {
for(int z = chunkPosZ << 4; z <= (chunkPosZ << 4) + 16; z++) {
for(int x = chunkPosX << 4; x < (chunkPosX << 4) + 16; x++) {
for(int z = chunkPosZ << 4; z < (chunkPosZ << 4) + 16; z++) {
double distance = Math.hypot(x - posX, z - posZ);
if(distance <= getScale()) {
double percent = distance * 100 / getScale();
Expand Down

0 comments on commit 9707c4c

Please sign in to comment.