Fix cash shop bbsmojis (#510)

They originally caused a BBS post to not send
This commit is contained in:
Periwinks
2019-08-08 21:15:34 -04:00
committed by Ronan Lana
parent c49540bd83
commit d4279dc309

View File

@@ -56,7 +56,7 @@ public final class BBSOperationHandler extends AbstractMaplePacketHandler {
String text = correctLength(slea.readMapleAsciiString(), 600);
int icon = slea.readInt();
if (icon >= 0x64 && icon <= 0x6a) {
if (c.getPlayer().haveItemWithId(5290000 + icon - 0x64, false)) {
if (!c.getPlayer().haveItemWithId(5290000 + icon - 0x64, false)) {
return;
}
} else if (icon < 0 || icon > 3) {