diff options
author | Linnea Gräf <nea@nea.moe> | 2024-01-18 20:00:47 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-01-18 20:00:47 +0100 |
commit | 608fec9cd0bbe3cf389faaeb7e258b592e3adf14 (patch) | |
tree | ef7996342498f64529ac6eb5851b2a61a1973d1c /src/main/java/moe/nea/firmament/mixins | |
parent | d7902e06cd7285c72cd4ea2be6f18ead56a8775e (diff) | |
download | Firmament-608fec9cd0bbe3cf389faaeb7e258b592e3adf14.tar.gz Firmament-608fec9cd0bbe3cf389faaeb7e258b592e3adf14.tar.bz2 Firmament-608fec9cd0bbe3cf389faaeb7e258b592e3adf14.zip |
Add Nearby Burrow Highlighter
Diffstat (limited to 'src/main/java/moe/nea/firmament/mixins')
-rw-r--r-- | src/main/java/moe/nea/firmament/mixins/IncomingPacketListenerPatches.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/moe/nea/firmament/mixins/IncomingPacketListenerPatches.java b/src/main/java/moe/nea/firmament/mixins/IncomingPacketListenerPatches.java index 0984264..88c03d6 100644 --- a/src/main/java/moe/nea/firmament/mixins/IncomingPacketListenerPatches.java +++ b/src/main/java/moe/nea/firmament/mixins/IncomingPacketListenerPatches.java @@ -13,6 +13,7 @@ import moe.nea.firmament.events.ParticleSpawnEvent; import net.minecraft.client.network.ClientPlayNetworkHandler; import net.minecraft.network.packet.s2c.play.ParticleS2CPacket; import net.minecraft.util.math.Vec3d; +import org.joml.Vector3f; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; @@ -33,9 +34,10 @@ public abstract class IncomingPacketListenerPatches { var event = new ParticleSpawnEvent( packet.getParameters(), new Vec3d(packet.getX(), packet.getY(), packet.getZ()), - new Vec3d(packet.getOffsetX(), packet.getOffsetY(), packet.getOffsetZ()), + new Vector3f(packet.getOffsetX(), packet.getOffsetY(), packet.getOffsetZ()), packet.isLongDistance(), - packet.getCount() + packet.getCount(), + packet.getSpeed() ); ParticleSpawnEvent.Companion.publish(event); if (event.getCancelled()) |