3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 00:00:28 +01:00

use blockmapping for air ids

Dieser Commit ist enthalten in:
Gerrygames 2018-11-08 13:46:02 +01:00
Ursprung 9fac4f9de4
Commit ccb5ceb9b3

Datei anzeigen

@ -13,13 +13,14 @@ import us.myles.ViaVersion.api.type.Type;
import us.myles.ViaVersion.packets.State;
import us.myles.ViaVersion.protocols.protocol1_13to1_12_2.types.Chunk1_13Type;
import us.myles.ViaVersion.protocols.protocol1_14to1_13_2.Protocol1_14To1_13_2;
import us.myles.ViaVersion.protocols.protocol1_14to1_13_2.data.MappingData;
import us.myles.ViaVersion.protocols.protocol1_14to1_13_2.types.Chunk1_14Type;
import us.myles.ViaVersion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld;
public class WorldPackets {
private static final int AIR = 0;
private static final int VOID_AIR = 8817;
private static final int CAVE_AIR = 8818;
private static final int AIR = MappingData.blockMappings.getNewBlock(0);
private static final int VOID_AIR = MappingData.blockMappings.getNewBlock(8591);
private static final int CAVE_AIR = MappingData.blockMappings.getNewBlock(8592);
public static void register(Protocol protocol) {