Skip to content

Commit

Permalink
fix old links and simplify names
Browse files Browse the repository at this point in the history
  • Loading branch information
auxves committed Nov 18, 2022
1 parent 208d1d3 commit 159d8cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ Vibes is compatible with mods that introduce new music discs into the game, so y

[curseforge]: https://www.curseforge.com/minecraft/mc-mods/vibes
[modrinth]: https://modrinth.com/mod/vibes
[github releases]: https://github.com/glossnyx/vibes/releases
[github releases]: https://github.com/auxves/vibes/releases

<!-- Suggestions -->

[disco]: https://github.com/glossnyx/disco
[disco]: https://github.com/auxves/disco
2 changes: 1 addition & 1 deletion src/main/java/io/auxves/vibes/mixin/JukeboxBlockMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private boolean onSpawnEntity(World world, Entity entity) {
ItemEntity itemEntity = (ItemEntity) entity;
ItemStack stack = itemEntity.getStack();
BridgesKt.changePosition(stack, entity);
BridgesKt.setDistance(entity.world, stack, ChangeDistance.Normal);
BridgesKt.changeDistance(stack, entity.world, ChangeDistance.Normal);
return world.spawnEntity(entity);
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/io/auxves/vibes/server/Bridges.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fun changePosition(stack: ItemStack, entity: Entity) {
}
}

fun setDistance(world: World, stack: ItemStack, distance: Float) {
fun changeDistance(stack: ItemStack, world: World, distance: Float) {
vibesIn(stack).map { it.uuid }.forEach {
world.sendAll(ChangeDistance(it, distance))
}
Expand Down

0 comments on commit 159d8cd

Please sign in to comment.