mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
moremore light logic
This commit is contained in:
parent
2bb43e5136
commit
fb765174dd
@ -336,15 +336,13 @@ public class EntityGlyphidScout extends EntityGlyphid {
|
|||||||
int y = MathHelper.floor_double(this.boundingBox.minY);
|
int y = MathHelper.floor_double(this.boundingBox.minY);
|
||||||
int z = MathHelper.floor_double(this.posZ);
|
int z = MathHelper.floor_double(this.posZ);
|
||||||
|
|
||||||
int light = this.worldObj.getBlockLightValue(x, y, z);
|
int skylightSubtracted = this.worldObj.skylightSubtracted;
|
||||||
|
|
||||||
if(this.worldObj.isThundering()) {
|
if(this.worldObj.isThundering()) this.worldObj.skylightSubtracted = 10;
|
||||||
int skylightSubtracted = this.worldObj.skylightSubtracted;
|
int light = worldObj.getChunkFromChunkCoords(x >> 4, z >> 4).getBlockLightValue(x & 15, y, z & 15, worldObj.skylightSubtracted);
|
||||||
this.worldObj.skylightSubtracted = 10;
|
|
||||||
light = this.worldObj.getBlockLightValue(x, y, z);
|
this.worldObj.skylightSubtracted = skylightSubtracted;
|
||||||
this.worldObj.skylightSubtracted = skylightSubtracted;
|
|
||||||
}
|
|
||||||
|
|
||||||
return light <= 7;
|
return light <= 7;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user