Skip to content

Commit

Permalink
Fix void damage bug and 7.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aria1th committed Apr 20, 2023
1 parent 6c44803 commit b5b519d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ org.gradle.jvmargs=-Xmx6G
loader_version=0.14.7

# Mod Properties
mod_version = 7.0.2
mod_version = 7.0.3
maven_group = aria1th.extensions
archives_base_name = litematica-printer
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
//$$ import org.jetbrains.annotations.Nullable;
//#endif
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

Expand All @@ -23,6 +24,7 @@

@Mixin(value = ClientPlayerEntity.class, priority = 1200)
public abstract class ClientPlayerEntityMixin extends PlayerEntity {

//#if MC<11900
public ClientPlayerEntityMixin(World world, BlockPos pos, float yaw, GameProfile gameProfile) {
super(world, pos, yaw, gameProfile);
Expand Down Expand Up @@ -54,7 +56,7 @@ private void onSendPacketVehicle(ClientPlayNetworkHandler clientPlayNetworkHandl
return;
}
clientPlayNetworkHandler.sendPacket(new PlayerMoveC2SPacket.Full(
this.getX(), -999.0D, this.getZ(),
this.getX(), this.hasVehicle()? -999.0D : this.getY(), this.getZ(),
FakeAccurateBlockPlacement.fakeYaw,
FakeAccurateBlockPlacement.fakePitch,
this.isOnGround()
Expand All @@ -72,7 +74,7 @@ private void onSendPacketFull(ClientPlayNetworkHandler clientPlayNetworkHandler,
return;
}
clientPlayNetworkHandler.sendPacket(new PlayerMoveC2SPacket.Full(
this.getX(), this.getY(), this.getZ(),
this.getX(), this.hasVehicle()? -999.0D : this.getY(), this.getZ(),
FakeAccurateBlockPlacement.fakeYaw,
FakeAccurateBlockPlacement.fakePitch,
this.isOnGround()
Expand Down

0 comments on commit b5b519d

Please sign in to comment.