Skip to content

Commit

Permalink
Fix Entity passenger bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Jul 5, 2024
1 parent 4071734 commit eb7b7ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fabric_version=0.100.0+1.21

maven_group = eu.pb4

mod_version = 0.9.3
mod_version = 0.9.4

minecraft_version_supported = ">=1.20.5-"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class EntityPassengersSetS2CPacketMixin {

@ModifyArg(method = "write", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/PacketByteBuf;writeIntArray([I)Lnet/minecraft/network/PacketByteBuf;"))
private int[] addDynamicPassengers(int[] a) {
if (this.virtualPassengers.isEmpty()) {
if (this.virtualPassengers == null || this.virtualPassengers.isEmpty()) {
return a;
}
var player = PolymerCommonUtils.getPlayerContext();
Expand Down

0 comments on commit eb7b7ac

Please sign in to comment.