Skip to content

Commit

Permalink
fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
linsaftw committed Aug 17, 2021
1 parent e8bbb31 commit 3e238a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dev/_2lstudios/viapotions/adapters/WorldEventAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public WorldEventAdapter(final Plugin plugin, final VersionUtil versionUtil) {

@Override
public void onPacketSending(PacketEvent event) {
if (event.isPlayerTemporary()) {
return;
}

final PacketContainer packet = event.getPacket();
final int effectId = packet.getIntegers().read(0);

Expand Down

0 comments on commit 3e238a0

Please sign in to comment.