Skip to content

Commit

Permalink
updated velocity to 3.4.0-SNAPSHOT, fixing build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
retrooper committed Feb 17, 2025
1 parent 97dcbc6 commit e531e43
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ protocol-support = "3d24efeda6"
bstats = "3.1.0"
paper = "1.20.6-R0.1-SNAPSHOT"
bungeecord = "1.21-R0.1-SNAPSHOT"
velocity = "3.1.0"
velocity = "3.4.0-SNAPSHOT"
run-paper = "2.3.1"
fabric-loom = "1.8.11"
spongeGradle = "2.2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ public void onPacketPlayReceive(PacketPlayReceiveEvent event) {
if (event.getPacketType() == PacketType.Play.Client.INTERACT_ENTITY) {
WrapperPlayClientInteractEntity interaction = new WrapperPlayClientInteractEntity(event);
if (interaction.getAction() == WrapperPlayClientInteractEntity.InteractAction.ATTACK) {
Player player = (Player) event.getPlayer();
Player player = event.getPlayer();
WrapperPlayServerBlockChange blockChange = new WrapperPlayServerBlockChange(SpigotConversionUtil
.fromBukkitLocation(player.getLocation()).getPosition().toVector3i().subtract(0, 1, 0),
StateTypes.COAL_BLOCK.createBlockState().getGlobalId());

event.getUser().sendPacket(blockChange);
}
}
}
}

@Override
public void onPacketPlaySend(PacketPlaySendEvent event) {
Expand Down
2 changes: 1 addition & 1 deletion velocity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
// maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.papermc.io/repository/maven-public/")
}

Expand Down

0 comments on commit e531e43

Please sign in to comment.