mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-12-21 16:47:57 +01:00
Set rewritten item in metadata rewriter
This commit is contained in:
parent
e1f2f151c9
commit
37711d0079
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user