Skip to content

Commit

Permalink
Update PacketPokemobGui.java
Browse files Browse the repository at this point in the history
fixes some flickering in the pokemob gui in high latency situations
  • Loading branch information
Thutmose committed Oct 11, 2022
1 parent b55c2da commit da73f44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static void sendOpenPacket(Entity target, ServerPlayer player, byte mode)
buffer.writeByte(mode);

IPokemob pokemob = PokemobCaps.getPokemobFor(target);
if (pokemob != null)
if (pokemob != null && !(player.containerMenu instanceof PokemobContainer))
{
StoreTask ai = null;
for (final IAIRunnable run : pokemob.getTasks()) if (run instanceof StoreTask task) ai = task;
Expand Down

0 comments on commit da73f44

Please sign in to comment.