fixed harlem shake and directionality in superhot
This commit is contained in:
1 parent
aeceacc733
commit
8ece019f71
3 files changed
+29
-2
No files matched your search
@@ -0,0 +1,24 @@
|
|||||||
|
package carpet.mixins;
|
||||||
|
|
||||||
|
import carpet.helpers.TickSpeed;
|
||||||
|
import net.minecraft.client.MinecraftClient;
|
||||||
|
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;
|
||||||
|
|
||||||
|
@Mixin(MinecraftClient.class)
|
||||||
|
public class MinecraftClient_pausedShakeMixin
|
||||||
|
{
|
||||||
|
@Shadow private boolean paused;
|
||||||
|
|
||||||
|
@Redirect(method = "render", at = @At(
|
||||||
|
value = "FIELD",
|
||||||
|
target = "Lnet/minecraft/client/MinecraftClient;paused:Z",
|
||||||
|
ordinal = 0
|
||||||
|
))
|
||||||
|
private boolean isPausedForRendering(MinecraftClient client)
|
||||||
|
{
|
||||||
|
return paused || !TickSpeed.process_entities;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -36,7 +36,9 @@ public class ServerPlayNetworkHandler_tickMixin
|
|||||||
))
|
))
|
||||||
private void checkMove(PlayerMoveC2SPacket p, CallbackInfo ci)
|
private void checkMove(PlayerMoveC2SPacket p, CallbackInfo ci)
|
||||||
{
|
{
|
||||||
if (p.getX(player.x) - lastTickX > 0.0001D || p.getY(player.y) - lastTickY > 0.0001D || p.getY(player.y) - lastTickY > 0.0001D)
|
if (Math.abs(p.getX(player.x) - lastTickX) > 0.0001D
|
||||||
|
|| Math.abs(p.getY(player.y) - lastTickY) > 0.0001D
|
||||||
|
|| Math.abs(p.getY(player.y) - lastTickY) > 0.0001D)
|
||||||
{
|
{
|
||||||
TickSpeed.reset_player_active_timeout();
|
TickSpeed.reset_player_active_timeout();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,7 +138,8 @@
|
|||||||
"ClientPlayerInteractionManager_ghostBlocksMixin",
|
"ClientPlayerInteractionManager_ghostBlocksMixin",
|
||||||
|
|
||||||
"BlockEntityRenderDispatcher_movableTEMixin",
|
"BlockEntityRenderDispatcher_movableTEMixin",
|
||||||
"PistonBlockEntityRenderer_movableTEMixin"
|
"PistonBlockEntityRenderer_movableTEMixin",
|
||||||
|
"MinecraftClient_pausedShakeMixin"
|
||||||
],
|
],
|
||||||
"server": [
|
"server": [
|
||||||
"MinecraftDedicatedServerMixin"
|
"MinecraftDedicatedServerMixin"
|
||||||
|
|||||||
Reference in new issue
Block a user