From acd537d53369002ff3e5557865cbe66af01ea3a1 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Wed, 26 Oct 2011 16:49:01 +0000 Subject: Added CreateInventoryAction packet for creative mode. Used cPacketEntityEquipment as template. Forced server into Creative Mode. Can't break blocks yet. Player can stil be damaged in creative mode and dying takes you back to survival mode. git-svn-id: http://mc-server.googlecode.com/svn/trunk@15 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/PacketID.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/PacketID.h') diff --git a/source/PacketID.h b/source/PacketID.h index 6a5611ae0..75482bbb0 100644 --- a/source/PacketID.h +++ b/source/PacketID.h @@ -1,8 +1,8 @@ #pragma once //tolua_begin -enum ENUM_PACKET_ID -{ +enum ENUM_PACKET_ID +{ E_KEEP_ALIVE = 0x00, E_LOGIN = 0x01, E_HANDSHAKE = 0x02, @@ -45,8 +45,9 @@ enum ENUM_PACKET_ID E_INVENTORY_SLOT = 0x67, E_INVENTORY_WHOLE = 0x68, E_INVENTORY_PROGRESS= 0x69, + E_CREATE_INVENTORY_ACTION = 0x6B, E_UPDATE_SIGN = 0x82, E_PING = 0xfe, E_DISCONNECT = 0xff, -}; -//tolua_end \ No newline at end of file +}; +//tolua_end -- cgit v1.2.3