File tree 2 files changed +6
-4
lines changed
bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/packet
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 4
4
import lombok .Data ;
5
5
import lombok .EqualsAndHashCode ;
6
6
import lombok .ToString ;
7
+ import org .cloudburstmc .protocol .bedrock .data .inventory .ContainerSlotType ;
7
8
import org .cloudburstmc .protocol .bedrock .data .inventory .FullContainerName ;
8
9
import org .cloudburstmc .protocol .bedrock .data .inventory .ItemData ;
9
10
import org .cloudburstmc .protocol .common .PacketSignal ;
@@ -19,7 +20,7 @@ public class InventoryContentPacket implements BedrockPacket {
19
20
/**
20
21
* @since v712
21
22
*/
22
- private FullContainerName containerNameData ;
23
+ private FullContainerName containerNameData = new FullContainerName ( ContainerSlotType . ANVIL_INPUT , null ) ;
23
24
/**
24
25
* @since v729
25
26
* @deprecated since v748. Use storageItem ItemData size instead.
@@ -28,7 +29,7 @@ public class InventoryContentPacket implements BedrockPacket {
28
29
/**
29
30
* @since v748
30
31
*/
31
- private ItemData storageItem ;
32
+ private ItemData storageItem = ItemData . AIR ;
32
33
33
34
@ Override
34
35
public final PacketSignal handle (BedrockPacketHandler handler ) {
Original file line number Diff line number Diff line change 3
3
import lombok .Data ;
4
4
import lombok .EqualsAndHashCode ;
5
5
import lombok .ToString ;
6
+ import org .cloudburstmc .protocol .bedrock .data .inventory .ContainerSlotType ;
6
7
import org .cloudburstmc .protocol .bedrock .data .inventory .FullContainerName ;
7
8
import org .cloudburstmc .protocol .bedrock .data .inventory .ItemData ;
8
9
import org .cloudburstmc .protocol .common .PacketSignal ;
@@ -17,7 +18,7 @@ public class InventorySlotPacket implements BedrockPacket {
17
18
/**
18
19
* @since v712
19
20
*/
20
- private FullContainerName containerNameData ;
21
+ private FullContainerName containerNameData = new FullContainerName ( ContainerSlotType . ANVIL_INPUT , null ) ;
21
22
/**
22
23
* @since v729
23
24
* @deprecated since v748. Use storageItem ItemData size instead.
@@ -26,7 +27,7 @@ public class InventorySlotPacket implements BedrockPacket {
26
27
/**
27
28
* @since v748
28
29
*/
29
- private ItemData storageItem ;
30
+ private ItemData storageItem = ItemData . AIR ;
30
31
31
32
@ Override
32
33
public final PacketSignal handle (BedrockPacketHandler handler ) {
You can’t perform that action at this time.
0 commit comments