Set rewritten item in metadata rewriter

This commit is contained in:
Nassim Jahnke 2024-03-19 12:04:48 +01:00
parent e1f2f151c9
commit 37711d0079
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -222,7 +222,7 @@ public abstract class EntityRewriterBase<C extends ClientboundPacketType, T exte
filter().handler((event, meta) -> {
MetaType type = meta.metaType();
if (type == itemType) {
protocol.getItemRewriter().handleItemToClient(meta.value());
meta.setValue(protocol.getItemRewriter().handleItemToClient(meta.value()));
} else if (type == blockStateType) {
int data = meta.value();
meta.setValue(protocol.getMappingData().getNewBlockStateId(data));