Skip to content

Commit 0e5a3cb

Browse files
committed
update zenith api
1 parent 46073af commit 0e5a3cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/example/module/ExampleESPModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public PacketHandlerCodec registerServerPacketHandlerCodec() {
2828
.state(ProtocolState.GAME, PacketHandlerStateCodec.serverBuilder()
2929
// packet classes can and will change between MC versions
3030
// if you want to have packet handlers you probably need separate plugin builds for each MC version
31-
.registerInbound(ClientboundSetEntityDataPacket.class, new GlowingEntityMetadataPacketHandler())
31+
.inbound(ClientboundSetEntityDataPacket.class, new GlowingEntityMetadataPacketHandler())
3232
// or with in-line lambda:
33-
// .registerOutbound(ClientboundSetEntityDataPacket.class, (packet, session) -> {
33+
// .outbound(ClientboundSetEntityDataPacket.class, (packet, session) -> {
3434
// ...more impl...
3535
// return packet;
3636
// })

0 commit comments

Comments
 (0)