Partial fix for shortcut icons.

This commit is contained in:
MobiusDevelopment
2019-08-08 10:27:22 +00:00
parent cd83548428
commit 81cd49feb9
2 changed files with 4 additions and 4 deletions

View File

@@ -46,8 +46,6 @@ public class ShortCutInit implements IClientOutgoingPacket
packet.writeD(sc.getType().ordinal());
packet.writeD(sc.getSlot() + (sc.getPage() * 12));
packet.writeC(0x00); // 228
switch (sc.getType())
{
case ITEM:
@@ -66,6 +64,7 @@ public class ShortCutInit implements IClientOutgoingPacket
packet.writeD(sc.getId());
packet.writeH(sc.getLevel());
packet.writeH(sc.getSubLevel());
packet.writeC(0x00); // 228
packet.writeD(sc.getSharedReuseGroup());
packet.writeC(0x00); // C5
packet.writeD(0x01); // C6
@@ -76,6 +75,7 @@ public class ShortCutInit implements IClientOutgoingPacket
case RECIPE:
case BOOKMARK:
{
packet.writeC(0x00); // 228
packet.writeD(sc.getId());
packet.writeD(0x01); // C6
}

View File

@@ -41,8 +41,6 @@ public class ShortCutRegister implements IClientOutgoingPacket
packet.writeD(_shortcut.getType().ordinal());
packet.writeD(_shortcut.getSlot() + (_shortcut.getPage() * 12)); // C4 Client
packet.writeC(0x00); // 228
switch (_shortcut.getType())
{
case ITEM:
@@ -61,6 +59,7 @@ public class ShortCutRegister implements IClientOutgoingPacket
packet.writeD(_shortcut.getId());
packet.writeH(_shortcut.getLevel());
packet.writeH(_shortcut.getSubLevel());
packet.writeC(0x00); // 228
packet.writeD(_shortcut.getSharedReuseGroup());
packet.writeC(0x00); // C5
packet.writeD(_shortcut.getCharacterType());
@@ -75,6 +74,7 @@ public class ShortCutRegister implements IClientOutgoingPacket
{
packet.writeD(_shortcut.getId());
packet.writeD(_shortcut.getCharacterType());
break;
}
}
return true;