Fix a couple places not calling forge getLightValue

This commit is contained in:
tterrag 2019-09-08 23:32:27 -04:00
parent 3dce85c49f
commit 2b4e3bcf54
2 changed files with 10 additions and 1 deletions

View File

@ -63,7 +63,7 @@
} else {
BlockState blockstate1 = this.func_180495_p(p_180501_1_);
- if (blockstate1 != blockstate && (blockstate1.func_200016_a(this, p_180501_1_) != blockstate.func_200016_a(this, p_180501_1_) || blockstate1.func_185906_d() != blockstate.func_185906_d() || blockstate1.func_215691_g() || blockstate.func_215691_g())) {
+ if (blockstate1 != blockstate && (blockstate1.func_200016_a(this, p_180501_1_) != oldOpacity || blockstate1.func_185906_d() != oldLight || blockstate1.func_215691_g() || blockstate.func_215691_g())) {
+ if (blockstate1 != blockstate && (blockstate1.func_200016_a(this, p_180501_1_) != oldOpacity || blockstate1.getLightValue(this, p_180501_1_) != oldLight || blockstate1.func_215691_g() || blockstate.func_215691_g())) {
this.field_72984_F.func_76320_a("queueCheckLight");
this.func_72863_F().func_212863_j_().func_215568_a(p_180501_1_);
this.field_72984_F.func_76319_b();

View File

@ -177,6 +177,15 @@
for(int i = 0; i < this.field_76652_q.length; ++i) {
ChunkSection chunksection = this.field_76652_q[i];
if ((p_217326_3_ & 1 << i) == 0) {
@@ -599,7 +616,7 @@
public Stream<BlockPos> func_217304_m() {
return StreamSupport.stream(BlockPos.func_191531_b(this.field_212816_F.func_180334_c(), 0, this.field_212816_F.func_180333_d(), this.field_212816_F.func_180332_e(), 255, this.field_212816_F.func_180330_f()).spliterator(), false).filter((p_217312_1_) -> {
- return this.func_180495_p(p_217312_1_).func_185906_d() != 0;
+ return this.func_180495_p(p_217312_1_).getLightValue(func_177412_p(), p_217312_1_) != 0;
});
}
@@ -704,9 +721,9 @@
private TileEntity func_212815_a(BlockPos p_212815_1_, CompoundNBT p_212815_2_) {
TileEntity tileentity;