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:
parent
26cfe04646
commit
5173175668
|
@ -193,6 +193,7 @@ public abstract class AbstractContainerBlockEntity extends BlockEntity implement
|
||||||
world.scheduleBlockRender(pos);
|
world.scheduleBlockRender(pos);
|
||||||
BlockState blockState = world.getBlockState(pos);
|
BlockState blockState = world.getBlockState(pos);
|
||||||
world.updateListeners(pos, blockState, blockState, 3);
|
world.updateListeners(pos, blockState, blockState, 3);
|
||||||
|
blockState.updateNeighborStates(world, pos, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<ItemStack> getDroppedStacks(Entry e, ServerWorld world, BlockPos pos) {
|
private List<ItemStack> getDroppedStacks(Entry e, ServerWorld world, BlockPos pos) {
|
||||||
|
|
Loading…
Reference in New Issue