Jump to content

Zeplar

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Zeplar

  1. I have a WorldTickEvent that iterates over players. I was seeing some bugs so I have it printing the size of the player list.... it (consistently) gives me the sequence 000011000011000011. Really 001 since the world ticks twice per "tick". Why is my player list empty 2/3 of the time?
     

    @SubscribeEvent
    public static void onTick(TickEvent.WorldTickEvent event)
    {
        System.out.println("World: " + event.side.name() + " || Players: " + event.world.playerEntities.size());
    }
    
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.