Skip to content

Commit

Permalink
* NPE fix for WrappedPacketInEntityAction in 1.8+
Browse files Browse the repository at this point in the history
  • Loading branch information
Retrooper committed Aug 30, 2020
1 parent 7fc4463 commit 427a0ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import io.github.retrooper.packetevents.packetwrappers.in.useentity.WrappedPacketInUseEntity;
import io.github.retrooper.packetevents.packetwrappers.out.chat.WrappedPacketOutChat;
import org.bukkit.plugin.java.JavaPlugin;

public class MainExample extends JavaPlugin implements PacketListener {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected void setup() {
} else {
final Object enumObj = Reflection.getField(entityActionClass, enumPlayerActionClass, 0).get(packet);
final String enumName = enumObj.toString();

this.action = cachedPlayerActionNames.get(enumName);
}


Expand Down

0 comments on commit 427a0ff

Please sign in to comment.