mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
修复严重的发包物品漏洞
This commit is contained in:
@@ -2241,7 +2241,7 @@ public class PacketConsumers {
|
|||||||
// 因为不能走编码器只能替换对象
|
// 因为不能走编码器只能替换对象
|
||||||
public static final TriConsumer<NetWorkUser, NMSPacketEvent, Object> CONTAINER_CLICK_1_21_5 = (user, event, packet) -> {
|
public static final TriConsumer<NetWorkUser, NMSPacketEvent, Object> CONTAINER_CLICK_1_21_5 = (user, event, packet) -> {
|
||||||
try {
|
try {
|
||||||
var player = (net.momirealms.craftengine.core.entity.player.Player) user;
|
BukkitServerPlayer player = (BukkitServerPlayer) user;
|
||||||
int containerId = FastNMS.INSTANCE.field$ServerboundContainerClickPacket$containerId(packet);
|
int containerId = FastNMS.INSTANCE.field$ServerboundContainerClickPacket$containerId(packet);
|
||||||
int stateId = FastNMS.INSTANCE.field$ServerboundContainerClickPacket$stateId(packet);
|
int stateId = FastNMS.INSTANCE.field$ServerboundContainerClickPacket$stateId(packet);
|
||||||
short slotNum = FastNMS.INSTANCE.field$ServerboundContainerClickPacket$slotNum(packet);
|
short slotNum = FastNMS.INSTANCE.field$ServerboundContainerClickPacket$slotNum(packet);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
|
|
||||||
# Project settings
|
# Project settings
|
||||||
# Rule: [major update].[feature update].[bug fix]
|
# Rule: [major update].[feature update].[bug fix]
|
||||||
project_version=0.0.61.6
|
project_version=0.0.61.7
|
||||||
config_version=43
|
config_version=43
|
||||||
lang_version=23
|
lang_version=23
|
||||||
project_group=net.momirealms
|
project_group=net.momirealms
|
||||||
@@ -50,7 +50,7 @@ byte_buddy_version=1.17.5
|
|||||||
ahocorasick_version=0.6.3
|
ahocorasick_version=0.6.3
|
||||||
snake_yaml_version=2.4
|
snake_yaml_version=2.4
|
||||||
anti_grief_version=0.18
|
anti_grief_version=0.18
|
||||||
nms_helper_version=1.0.56
|
nms_helper_version=1.0.57
|
||||||
evalex_version=3.5.0
|
evalex_version=3.5.0
|
||||||
reactive_streams_version=1.0.4
|
reactive_streams_version=1.0.4
|
||||||
amazon_awssdk_version=2.31.23
|
amazon_awssdk_version=2.31.23
|
||||||
|
|||||||
Reference in New Issue
Block a user