Skip to content

Commit

Permalink
Fix neighbor updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Commoble committed Jun 20, 2020
1 parent f92be97 commit 8cd2718
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import net.minecraft.util.Direction;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.common.ForgeHooks;
import net.minecraftforge.common.util.Constants;
import net.minecraftforge.common.util.LazyOptional;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.IItemHandler;
Expand Down Expand Up @@ -300,7 +299,7 @@ else if (!this.isBurning() && this.cookProgress > 0)
BlockPos.getAllInBox(this.getPos().add(-1,-1,-1), this.getPos().add(1,1,1)).forEach(subPos ->
{
BlockState state = this.world.getBlockState(subPos);
this.world.notifyBlockUpdate(subPos.toImmutable(), state,state, Constants.BlockFlags.DEFAULT | Constants.BlockFlags.NO_RERENDER);
this.world.notifyNeighbors(subPos, state.getBlock());
});

}
Expand Down

0 comments on commit 8cd2718

Please sign in to comment.