Skip to content

Commit

Permalink
use sendToAll for more stability
Browse files Browse the repository at this point in the history
  • Loading branch information
demonlexe committed Aug 25, 2024
1 parent 87444e0 commit 7e07d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/drzhark/mocreatures/MoCTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ public static void dismountPassengerFromEntity(Entity passenger, Entity entity,
if (force || entity.isSneaking() || passenger.isInWater()) {
if (force) MoCreatures.LOGGER.info("Forcing dismount from " + entity + " for passenger " + passenger);
int passengerId = passenger.getEntityId();
MoCMessageHandler.INSTANCE.sendToAllAround(new MoCMessageDismountRidingEntityClient(passengerId), new NetworkRegistry.TargetPoint(entity.world.provider.getDimensionType().getId(), entity.posX, entity.posY, entity.posZ, 64));
MoCMessageHandler.INSTANCE.sendToAll(new MoCMessageDismountRidingEntityClient(passengerId));
MoCMessageHandler.INSTANCE.sendToServer(new MoCMessageDismountRidingEntityServer(passengerId));
MoCTools.playCustomSound(passenger, SoundEvents.ENTITY_CHICKEN_EGG);
if (entity instanceof EntityPlayer) {
Expand Down

0 comments on commit 7e07d99

Please sign in to comment.