use of riskyken.armourersWorkshop.common.network.messages.server.MessageServerPlayerLeftTrackingRange in project Armourers-Workshop by RiskyKen.
the class EntityEquipmentDataManager method onStopTracking.
@SubscribeEvent
public void onStopTracking(PlayerEvent.StopTracking event) {
if (event.target instanceof EntityPlayerMP) {
EntityPlayerMP target = (EntityPlayerMP) event.target;
MessageServerPlayerLeftTrackingRange message = new MessageServerPlayerLeftTrackingRange(new PlayerPointer(target));
PacketHandler.networkWrapper.sendTo(message, (EntityPlayerMP) event.entityPlayer);
}
}
Aggregations