Fix NPE in piston remapper

Fixes ViaVersion/ViaVersion#2137
This commit is contained in:
KennyTV 2020-10-15 19:17:16 +02:00
parent 46c7cab3a4
commit 0c040db6f0
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -68,6 +68,8 @@ public class PistonHandler implements BackwardsBlockEntityProvider.BackwardsBloc
@Override
public CompoundTag transform(UserConnection user, int blockId, CompoundTag tag) {
CompoundTag blockState = tag.get("blockState");
if (blockState == null) return tag;
String dataFromTag = getDataFromTag(blockState);
if (dataFromTag == null) return tag;