From 159d8cd30ae28688ec9d3d0b44bdf503d5754a02 Mon Sep 17 00:00:00 2001 From: auxves Date: Fri, 18 Nov 2022 08:39:39 -0800 Subject: [PATCH] fix old links and simplify names --- README.md | 4 ++-- src/main/java/io/auxves/vibes/mixin/JukeboxBlockMixin.java | 2 +- src/main/kotlin/io/auxves/vibes/server/Bridges.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1a8ee5a..1ae9eab 100644 --- a/README.md +++ b/README.md @@ -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 -[disco]: https://github.com/glossnyx/disco +[disco]: https://github.com/auxves/disco diff --git a/src/main/java/io/auxves/vibes/mixin/JukeboxBlockMixin.java b/src/main/java/io/auxves/vibes/mixin/JukeboxBlockMixin.java index ca0aaba..fa49b3b 100644 --- a/src/main/java/io/auxves/vibes/mixin/JukeboxBlockMixin.java +++ b/src/main/java/io/auxves/vibes/mixin/JukeboxBlockMixin.java @@ -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); } } diff --git a/src/main/kotlin/io/auxves/vibes/server/Bridges.kt b/src/main/kotlin/io/auxves/vibes/server/Bridges.kt index 2d9ad9c..88e2fc4 100644 --- a/src/main/kotlin/io/auxves/vibes/server/Bridges.kt +++ b/src/main/kotlin/io/auxves/vibes/server/Bridges.kt @@ -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)) }