Updating block state neighbors (#2)

* Add item settings

* Restore original build.gradle

* Add a call to updateNeighborStates in updateWorld

This is needed for validating neighboring blocks with getStateForNeighborUpdate.
This commit is contained in:
Juuxel 2019-01-06 16:47:52 +02:00 committed by Shadowfacts
parent 26cfe04646
commit 5173175668
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ public abstract class AbstractContainerBlockEntity extends BlockEntity implement
world.scheduleBlockRender(pos);
BlockState blockState = world.getBlockState(pos);
world.updateListeners(pos, blockState, blockState, 3);
blockState.updateNeighborStates(world, pos, 3);
}
private List<ItemStack> getDroppedStacks(Entry e, ServerWorld world, BlockPos pos) {