Merge pull request #4 from zeroeightysix/master

Merge new commits
This commit is contained in:
Christofer Minestar 2018-11-04 12:14:30 -05:00 committed by GitHub
commit 9aa406598d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -15,11 +15,10 @@ import java.util.Queue;
@Module.Info(name = "PortalGodMode", category = Module.Category.PLAYER) @Module.Info(name = "PortalGodMode", category = Module.Category.PLAYER)
public class PortalGodMode extends Module { public class PortalGodMode extends Module {
@EventHandler @EventHandler
public Listener<PacketEvent.Send> listener = new Listener<>(event -> { public Listener<PacketEvent.Send> listener = new Listener<>(event -> {
if (isEnabled() && event.getPacket() instanceof CPacketConfirmTeleport) { if (isEnabled() && event.getPacket() instanceof CPacketConfirmTeleport) {
event.cancel(); event.cancel();
} }
}); });
} }