Skip to content

Commit

Permalink
Minor lint change
Browse files Browse the repository at this point in the history
- Updated EntityMetadataPacket class
- Updated FakeEntity class
  • Loading branch information
josemmo committed Sep 28, 2024
1 parent a7770d9 commit c156508
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class EntityMetadataPacket extends PacketContainer {
private final List<WrappedDataValue> values = new ArrayList<>(); // For >= 1.19.3

static {
USE_DATA_WATCHER = (Internals.MINECRAFT_VERSION < 19.3f);
USE_DATA_WATCHER = (Internals.MINECRAFT_VERSION < 19.3);
ITEM_INDEX = (Internals.MINECRAFT_VERSION < 17) ? 7 : 8;
ROTATION_INDEX = ITEM_INDEX + 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected static void tryToSendPacket(@NotNull Player player, @NotNull PacketCon
* @param packets Packets to send
*/
protected static void tryToSendPackets(@NotNull Player player, @NotNull Iterable<PacketContainer> packets) {
if (Internals.MINECRAFT_VERSION < 19.4f) {
if (Internals.MINECRAFT_VERSION < 19.4) {
for (PacketContainer packet : packets) {
tryToSendPacket(player, packet);
}
Expand Down

0 comments on commit c156508

Please sign in to comment.