The Bug:
Foxes that trust two players don't defend the second player while the first one is in the same dimension.
Steps to Reproduce:
Switch to creative mode, set the difficulty to normal, and open a world to LAN.
Have a second player join your world in survival mode.
Place down a fox next to the second player using a spawn egg.
Make the fox trust you and then the second player by using the commands provided below.
/data modify entity @n[type=minecraft:fox] Trusted append from entity @s UUID/data modify entity @n[type=minecraft:fox] Trusted append from entity @p[distance=0.1..] UUIDPlace down a zombie next to the second player using a spawn egg.
Observe if the fox attacks the zombie once the zombie attacks the second player.
Observed Behavior:
Foxes don't defend the second player they trust while the first one is in the same dimension.
Expected Behavior:
Foxes would defend both players they trust.