9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 02:19:23 +00:00

clean(network): 清理代码

This commit is contained in:
jhqwqmc
2025-04-07 22:11:28 +08:00
parent 0ae08a496a
commit 3e17dd9e22
2 changed files with 2 additions and 4 deletions

View File

@@ -486,9 +486,7 @@ public class BukkitNetworkManager implements NetworkManager, Listener, PluginMes
}
if (byteBuf.isReadable()) {
list.add(byteBuf.retain());
}/* else {
list.add(io.netty.buffer.Unpooled.EMPTY_BUFFER);
}*/
}
}
private boolean handleCompression(ChannelHandlerContext ctx, ByteBuf buffer) {

View File

@@ -754,7 +754,6 @@ public class PacketConsumers {
IntList intList = FastNMS.INSTANCE.field$ClientboundRemoveEntitiesPacket$entityIds(packet);
for (int i = 0, size = intList.size(); i < size; i++) {
List<Integer> entities = user.furnitureView().remove(intList.getInt(i));
System.out.println("Removing " + entities);
if (entities == null) continue;
for (int entityId : entities) {
intList.add(entityId);
@@ -1086,6 +1085,7 @@ public class PacketConsumers {
// CraftEngine.instance().logger().warn("Failed to handle ClientboundSetEntityDataPacket", e);
// }
// };
// 之前的旧东西经供参考需要改成使用bytebuffer的
// public static final TriConsumer<NetWorkUser, NMSPacketEvent, Object> SET_ENTITY_DATA = (user, event, packet) -> {
// try {