mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-11-14 19:34:58 -05:00
Actually fix building
This commit is contained in:
parent
6d09b95665
commit
54c47dcc65
7 changed files with 8 additions and 13 deletions
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
|||
|
||||
<groupId>com.github.steveice10</groupId>
|
||||
<artifactId>mcprotocollib</artifactId>
|
||||
<version>1.18.2-2-SNAPSHOT</version>
|
||||
<version>1.19-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>MCProtocolLib</name>
|
||||
|
|
|
@ -39,7 +39,6 @@ public enum CommandParser {
|
|||
MOB_EFFECT,
|
||||
FUNCTION,
|
||||
ENTITY_ANCHOR,
|
||||
RANGE,
|
||||
INT_RANGE,
|
||||
FLOAT_RANGE,
|
||||
ITEM_ENCHANTMENT,
|
||||
|
|
|
@ -143,9 +143,6 @@ public class ClientboundCommandsPacket implements Packet {
|
|||
case SCORE_HOLDER:
|
||||
properties = new ScoreHolderProperties(in.readBoolean());
|
||||
break;
|
||||
case RANGE:
|
||||
properties = new RangeProperties(in.readBoolean());
|
||||
break;
|
||||
case RESOURCE:
|
||||
case RESOURCE_OR_TAG:
|
||||
properties = new ResourceProperties(in.readString());
|
||||
|
@ -313,9 +310,6 @@ public class ClientboundCommandsPacket implements Packet {
|
|||
case SCORE_HOLDER:
|
||||
out.writeBoolean(((ScoreHolderProperties) node.getProperties()).isAllowMultiple());
|
||||
break;
|
||||
case RANGE:
|
||||
out.writeBoolean(((RangeProperties) node.getProperties()).isAllowDecimals());
|
||||
break;
|
||||
case RESOURCE:
|
||||
case RESOURCE_OR_TAG:
|
||||
out.writeString(((ResourceProperties) node.getProperties()).getRegistryKey());
|
||||
|
|
|
@ -47,9 +47,10 @@ public class MinecraftProtocolTest {
|
|||
new VersionInfo(MinecraftCodec.CODEC.getMinecraftVersion(), MinecraftCodec.CODEC.getProtocolVersion()),
|
||||
new PlayerInfo(100, 0, new GameProfile[0]),
|
||||
Component.text("Hello world!"),
|
||||
null
|
||||
null,
|
||||
false
|
||||
);
|
||||
private static final ClientboundLoginPacket JOIN_GAME_PACKET = new ClientboundLoginPacket(0, false, GameMode.SURVIVAL, GameMode.SURVIVAL, 1, new String[]{"minecraft:world"}, getDimensionTag(), getOverworldTag(), "minecraft:world", 100, 0, 16, 16, false, false, false, false);
|
||||
private static final ClientboundLoginPacket JOIN_GAME_PACKET = new ClientboundLoginPacket(0, false, GameMode.SURVIVAL, GameMode.SURVIVAL, 1, new String[]{"minecraft:world"}, getDimensionTag(), "dimension:overworld", "minecraft:world", 100, 0, 16, 16, false, false, false, false);
|
||||
|
||||
private static Server server;
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ public class MagicValuesTest {
|
|||
this.register(RotationOrigin.class, Integer.class);
|
||||
this.register(RecipeType.class, String.class);
|
||||
this.register(CommandType.class, Integer.class);
|
||||
this.register(CommandParser.class, String.class);
|
||||
this.register(CommandParser.class, Integer.class);
|
||||
this.register(SuggestionType.class, String.class);
|
||||
this.register(StringProperties.class, Integer.class);
|
||||
this.register(SoundCategory.class, Integer.class);
|
||||
|
|
|
@ -6,6 +6,6 @@ import org.junit.Before;
|
|||
public class ServerboundHelloPacketTest extends PacketTest {
|
||||
@Before
|
||||
public void setup() {
|
||||
this.setPackets(new ServerboundHelloPacket("Username"));
|
||||
this.setPackets(new ServerboundHelloPacket("Username", null, null, null));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,8 @@ public class ClientboundStatusResponsePacketTest extends PacketTest {
|
|||
new GameProfile(UUID.randomUUID(), "Username")
|
||||
}),
|
||||
Component.text("Description"),
|
||||
null
|
||||
null,
|
||||
false
|
||||
)
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue