Skip to content

Commit a5085f0

Browse files
committed
Fix blocking non-cache itemstack is not cancelling packet
1 parent b7573ec commit a5085f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bukkit/src/main/java/io/github/rothes/protocolstringreplacer/packetlistener/server/BaseServerPacketListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ protected static ItemStack replaceItemStack(@Nonnull PacketEvent packetEvent, @N
302302
ItemStackContainer container = new ItemStackContainer(itemStack);
303303

304304
if (!container.isFromCache() && cacheItemStack(container, nbt, lore, entries)) {
305-
// Blocked
306-
return null;
305+
cacheItemStack(container, nbt, lore, entries);
307306
}
308307
if (container.getMetaCache().isBlocked()) {
309308
packetEvent.setCancelled(true);

0 commit comments

Comments
 (0)