Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ public void onPlace(BlockState state, Level world, BlockPos pos, BlockState oldS
if (moved)
return;
withBlockEntityDo(world, pos, FluidTankBlockEntity::updateConnectivity);

// updateConnectivity may have changed the in-world block state, which prevents the call to markAndNotifyBlock
// in net.neoforged.neoforge.common.CommonHooks#onPlaceItemIntoWorld from doing anything
BlockState newState = world.getBlockState(pos);
if (state != newState && newState.getBlock() == this) {
world.markAndNotifyBlock(pos, world.getChunkAt(pos), oldState, newState, UPDATE_ALL_IMMEDIATE, 512);
}
}

@Override
Expand Down