Fix achievement popup "Open Inventory" visible forever

This commit is contained in:
Matsv 2017-06-14 14:59:48 +02:00
parent b6bf2cd950
commit 4928dab3f0
No known key found for this signature in database
GPG Key ID: 97CEC2A2EA31350F

View File

@ -311,6 +311,20 @@ public class EntityPackets1_12 extends EntityRewriter<Protocol1_11_1To1_12> {
clientWorld.setEnvironment(dimensionId);
}
});
// Send fake inventory achievement
handler(new PacketHandler() {
@Override
public void handle(PacketWrapper packetWrapper) throws Exception {
PacketWrapper wrapper = new PacketWrapper(0x07, null, packetWrapper.user());
wrapper.write(Type.VAR_INT, 1);
wrapper.write(Type.STRING, "achievement.openInventory");
wrapper.write(Type.VAR_INT, 1);
wrapper.send(Protocol1_11_1To1_12.class);
}
});
}
});