-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Horus Soaring's arrow not syncing properly on the client-side. C…
…loses #413
- Loading branch information
1 parent
97b6827
commit b968dac
Showing
14 changed files
with
57 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
minecraft_version=1.19.4 | ||
forge_version=45.0.46 | ||
forge_version=45.0.57 | ||
mod_version=2.3.0 | ||
jei_version=13.1.0.6 | ||
jei_version=13.1.0.9 | ||
ct_version=9.0.77 | ||
curios_version=5.1.5.1 | ||
curios_version=5.1.5.3 | ||
|
||
org.gradle.jvmargs=-Xmx4G | ||
org.gradle.daemon=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/main/java/com/teammetallurgy/atum/network/packet/SyncArrowFlightPathPacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.teammetallurgy.atum.network.packet; | ||
|
||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.player.LocalPlayer; | ||
import net.minecraft.network.FriendlyByteBuf; | ||
import net.minecraft.world.entity.Entity; | ||
import net.minecraftforge.network.NetworkEvent; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class SyncArrowFlightPathPacket { | ||
private final int arrowID; | ||
|
||
public SyncArrowFlightPathPacket(int arrowID) { | ||
this.arrowID = arrowID; | ||
} | ||
|
||
public static void encode(SyncArrowFlightPathPacket packet, FriendlyByteBuf buf) { | ||
buf.writeInt(packet.arrowID); | ||
} | ||
|
||
public static SyncArrowFlightPathPacket decode(FriendlyByteBuf buf) { | ||
return new SyncArrowFlightPathPacket(buf.readInt()); | ||
} | ||
|
||
public static class Handler { | ||
public static void handle(SyncArrowFlightPathPacket message, Supplier<NetworkEvent.Context> ctx) { | ||
LocalPlayer player = Minecraft.getInstance().player; | ||
if (player != null) { | ||
Entity entity = player.level.getEntity(message.arrowID); | ||
if (entity != null) { | ||
entity.setDeltaMovement(entity.getDeltaMovement().add(0.0D, 0.05D, 0.0D)); | ||
} | ||
} | ||
ctx.get().setPacketHandled(true); | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...m/network/packet/StormStrengthPacket.java → ...k/packet/weather/StormStrengthPacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...gy/atum/network/packet/WeatherPacket.java → ...network/packet/weather/WeatherPacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
src/main/java/com/teammetallurgy/atum/world/biome/AtumBiomeSource.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.