Fix falling block id rewrite

This commit is contained in:
KennyTV 2020-09-08 11:01:00 +02:00
parent a0a229fa29
commit 074edf1b48
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -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)));
}
});
}