Skip to content

Commit 410eea6

Browse files
committed
bump version
update README satisfy codacy remove error on 1.21.1 startup
1 parent 6d4742c commit 410eea6

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ A list of all commands can be found in the wiki ([here](https://github.com/MrKin
8080
- 1.20.5
8181
- 1.20.6
8282
- 1.21
83+
- 1.21.1
84+
- 1.21.2
85+
- 1.21.3
8386

8487
## Discord
8588
To follow the project, get support or request features or bugs you can join my Discord: https://discord.gg/xHpCDYf

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>systems.kinau</groupId>
1313
<artifactId>FishingBot</artifactId>
14-
<version>2.12.7</version>
14+
<version>2.12.8</version>
1515
<name>FishingBot</name>
1616
<description>An AFK fishing bot for Minecraft</description>
1717

src/main/java/systems/kinau/fishingbot/network/item/datacomponent/DataComponentRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public DataComponentRegistry() {
2525
addToRegistry(dataComponentRegistry.findKey("minecraft:unbreakable"), BooleanComponent::new);
2626
addToRegistry(dataComponentRegistry.findKey("minecraft:custom_name"), NBTComponent::new);
2727
addToRegistry(dataComponentRegistry.findKey("minecraft:item_name"), NBTComponent::new);
28-
addToRegistry(dataComponentRegistry.findKey("minecraft:item_model"), StringComponent::new);
2928
addToRegistry(dataComponentRegistry.findKey("minecraft:lore"), LoreComponent::new);
3029
addToRegistry(dataComponentRegistry.findKey("minecraft:rarity"), VarIntComponent::new);
3130
addToRegistry(dataComponentRegistry.findKey("minecraft:enchantments"), EnchantmentsComponent::new);
@@ -84,6 +83,7 @@ public DataComponentRegistry() {
8483
}
8584

8685
if (FishingBot.getInstance().getCurrentBot().getServerProtocol() >= ProtocolConstants.MC_1_21_2) {
86+
addToRegistry(dataComponentRegistry.findKey("minecraft:item_model"), StringComponent::new);
8787
addToRegistry(dataComponentRegistry.findKey("minecraft:consumable"), ConsumableComponent::new);
8888
addToRegistry(dataComponentRegistry.findKey("minecraft:use_remainder"), componentTypeId -> new UseRemainderComponent(this, componentTypeId));
8989
addToRegistry(dataComponentRegistry.findKey("minecraft:use_cooldown"), UseCooldownComponent::new);

src/main/java/systems/kinau/fishingbot/network/protocol/play/PacketInEntityTeleport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public void read(ByteArrayDataInputWrapper in, NetworkHandler networkHandler, in
4141
this.y = in.readDouble();
4242
this.z = in.readDouble();
4343
if (protocolId >= ProtocolConstants.MC_1_21_2) {
44-
double dx = in.readDouble();
45-
double dy = in.readDouble();
46-
double dz = in.readDouble();
44+
in.readDouble(); //dx
45+
in.readDouble(); //dy
46+
in.readDouble(); //dz
4747
}
4848
}
4949
int relatives = 0;

src/main/java/systems/kinau/fishingbot/network/protocol/play/PacketInPlayerPosLook.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public void read(ByteArrayDataInputWrapper in, NetworkHandler networkHandler, in
5858
double x = in.readDouble();
5959
double y = in.readDouble();
6060
double z = in.readDouble();
61-
double dx = in.readDouble();
62-
double dy = in.readDouble();
63-
double dz = in.readDouble();
61+
in.readDouble(); //dx
62+
in.readDouble(); //dy
63+
in.readDouble(); //dz
6464
float yaw = in.readFloat();
6565
float pitch = in.readFloat();
6666
int relatives = in.readInt();

0 commit comments

Comments
 (0)