From 074edf1b481f99ffd2c72e980060096b8ecaae6e Mon Sep 17 00:00:00 2001 From: KennyTV Date: Tue, 8 Sep 2020 11:01:00 +0200 Subject: [PATCH] Fix falling block id rewrite --- .../us/myles/ViaVersion/api/rewriters/MetadataRewriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/api/rewriters/MetadataRewriter.java b/common/src/main/java/us/myles/ViaVersion/api/rewriters/MetadataRewriter.java index 46c603efe..4d56b9a33 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/rewriters/MetadataRewriter.java +++ b/common/src/main/java/us/myles/ViaVersion/api/rewriters/MetadataRewriter.java @@ -82,7 +82,7 @@ public abstract class MetadataRewriter { int entityId = wrapper.get(Type.VAR_INT, 0); EntityType entityType = wrapper.user().get(entityTrackerClass).getEntity(entityId); if (entityType == fallingBlockType) { - wrapper.set(Type.INT, 0, protocol.getMappingData().getNewItemId(wrapper.get(Type.INT, 0))); + wrapper.set(Type.INT, 0, protocol.getMappingData().getNewBlockStateId(wrapper.get(Type.INT, 0))); } }); }