mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Update to 1.21.4
This commit is contained in:
1 parent
8853aea7cd
commit
7c2c80c41c
7 files changed
+20
-21
No files matched your search
+3
-3
@@ -4,8 +4,8 @@ org.gradle.parallel=true
|
||||
|
||||
# Fabric Properties
|
||||
# check these on https://fabricmc.net/develop
|
||||
minecraft_version=1.21.3
|
||||
yarn_mappings=1.21.3+build.2
|
||||
minecraft_version=1.21.4
|
||||
yarn_mappings=1.21.4+build.1
|
||||
loader_version=0.16.9
|
||||
|
||||
# Mod Properties
|
||||
@@ -14,4 +14,4 @@ maven_group=com.moulberry.flashback
|
||||
archives_base_name=flashback
|
||||
|
||||
# Dependencies
|
||||
fabric_version=0.107.0+1.21.3
|
||||
fabric_version=0.111.0+1.21.4
|
||||
@@ -73,7 +73,7 @@ public abstract class MixinLevelRenderer {
|
||||
|
||||
@Inject(method = "renderLevel", at = @At("HEAD"))
|
||||
public void renderLevel(GraphicsResourceAllocator graphicsResourceAllocator, DeltaTracker deltaTracker, boolean bl, Camera camera, GameRenderer gameRenderer,
|
||||
LightTexture lightTexture, Matrix4f matrix4f, Matrix4f projection, CallbackInfo ci) {
|
||||
Matrix4f matrix4f, Matrix4f projection, CallbackInfo ci) {
|
||||
ReplayUI.lastProjectionMatrix = projection;
|
||||
ReplayUI.lastViewQuaternion = camera.rotation();
|
||||
}
|
||||
@@ -184,7 +184,7 @@ public abstract class MixinLevelRenderer {
|
||||
}
|
||||
|
||||
@Inject(method = "addParticlesPass", at = @At("HEAD"), cancellable = true)
|
||||
public void addParticlesPass(FrameGraphBuilder frameGraphBuilder, Camera camera, LightTexture lightTexture, float f, FogParameters fogParameters, CallbackInfo ci) {
|
||||
public void addParticlesPass(FrameGraphBuilder frameGraphBuilder, Camera camera, float f, FogParameters fogParameters, CallbackInfo ci) {
|
||||
EditorState editorState = EditorStateManager.getCurrent();
|
||||
if (editorState != null && !editorState.replayVisuals.renderParticles) {
|
||||
ci.cancel();
|
||||
|
||||
@@ -32,7 +32,7 @@ public class MixinLevelRenderer {
|
||||
target = "Lnet/minecraft/client/Options;getCloudsType()Lnet/minecraft/client/CloudStatus;",
|
||||
shift = At.Shift.BEFORE
|
||||
))
|
||||
public void renderLevelPost(GraphicsResourceAllocator graphicsResourceAllocator, net.minecraft.client.DeltaTracker deltaTracker, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer, LightTexture lightTexture,
|
||||
public void renderLevelPost(GraphicsResourceAllocator graphicsResourceAllocator, net.minecraft.client.DeltaTracker deltaTracker, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer,
|
||||
Matrix4f matrix4f, Matrix4f projection, CallbackInfo ci, @Local FrameGraphBuilder frameGraphBuilder) {
|
||||
|
||||
if (!Flashback.isInReplay()) {
|
||||
@@ -53,7 +53,7 @@ public class MixinLevelRenderer {
|
||||
modelViewStack.identity();
|
||||
|
||||
float tickDelta = deltaTracker.getGameTimeDeltaPartialTick(true);
|
||||
WorldRenderHook.renderHook(poseStack, tickDelta, renderBlockOutline, camera, gameRenderer, lightTexture, projection);
|
||||
WorldRenderHook.renderHook(poseStack, tickDelta, renderBlockOutline, camera, gameRenderer, projection);
|
||||
|
||||
this.renderBuffers.bufferSource().endBatch();
|
||||
|
||||
|
||||
@@ -992,7 +992,7 @@ public class ReplayGamePacketHandler implements ClientGamePacketListener {
|
||||
|
||||
@Override
|
||||
public void handleSetHeldSlot(ClientboundSetHeldSlotPacket clientboundSetHeldSlotPacket) {
|
||||
if (!Inventory.isHotbarSlot(clientboundSetHeldSlotPacket.getSlot())) {
|
||||
if (!Inventory.isHotbarSlot(clientboundSetHeldSlotPacket.slot())) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1003,11 +1003,11 @@ public class ReplayGamePacketHandler implements ClientGamePacketListener {
|
||||
|
||||
Inventory inventory = player.getInventory();
|
||||
|
||||
if (inventory.selected == clientboundSetHeldSlotPacket.getSlot()) {
|
||||
if (inventory.selected == clientboundSetHeldSlotPacket.slot()) {
|
||||
return;
|
||||
}
|
||||
|
||||
inventory.selected = clientboundSetHeldSlotPacket.getSlot();
|
||||
inventory.selected = clientboundSetHeldSlotPacket.slot();
|
||||
|
||||
for (ReplayPlayer replayViewer : this.replayServer.getReplayViewers()) {
|
||||
if (Objects.equals(replayViewer.lastFirstPersonDataUUID, player.getUUID())) {
|
||||
@@ -1394,11 +1394,11 @@ public class ReplayGamePacketHandler implements ClientGamePacketListener {
|
||||
if (player instanceof Player) {
|
||||
Entity vehicle = player.getRootVehicle();
|
||||
if (vehicle != player) {
|
||||
double x = clientboundMoveVehiclePacket.getX();
|
||||
double y = clientboundMoveVehiclePacket.getY();
|
||||
double z = clientboundMoveVehiclePacket.getZ();
|
||||
float yaw = clientboundMoveVehiclePacket.getYRot();
|
||||
float pitch = clientboundMoveVehiclePacket.getXRot();
|
||||
double x = clientboundMoveVehiclePacket.position().x;
|
||||
double y = clientboundMoveVehiclePacket.position().y;
|
||||
double z = clientboundMoveVehiclePacket.position().z;
|
||||
float yaw = clientboundMoveVehiclePacket.yRot();
|
||||
float pitch = clientboundMoveVehiclePacket.xRot();
|
||||
vehicle.moveTo(x, y, z, yaw, pitch);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -907,17 +907,17 @@ public class Recorder {
|
||||
PlayerInfo info = player.getPlayerInfo();
|
||||
if (info != null) {
|
||||
infoUpdatePacket.entries.add(new ClientboundPlayerInfoUpdatePacket.Entry(player.getUUID(),
|
||||
player.getGameProfile(), true, info.getLatency(), info.getGameMode(), info.getTabListDisplayName(), info.getTabListOrder(), null));
|
||||
player.getGameProfile(), true, info.getLatency(), info.getGameMode(), info.getTabListDisplayName(), info.showHat(), info.getTabListOrder(), null));
|
||||
} else {
|
||||
infoUpdatePacket.entries.add(new ClientboundPlayerInfoUpdatePacket.Entry(player.getUUID(),
|
||||
player.getGameProfile(), true, 0, GameType.DEFAULT_MODE, player.getDisplayName(), 0, null));
|
||||
player.getGameProfile(), true, 0, GameType.DEFAULT_MODE, player.getDisplayName(), true, 0, null));
|
||||
}
|
||||
}
|
||||
}
|
||||
for (PlayerInfo info : connection.getListedOnlinePlayers()) {
|
||||
if (addedEntries.add(info.getProfile().getId())) {
|
||||
infoUpdatePacket.entries.add(new ClientboundPlayerInfoUpdatePacket.Entry(info.getProfile().getId(),
|
||||
info.getProfile(), true, info.getLatency(), info.getGameMode(), info.getTabListDisplayName(), info.getTabListOrder(), null));
|
||||
info.getProfile(), true, info.getLatency(), info.getGameMode(), info.getTabListDisplayName(), info.showHat(), info.getTabListOrder(), null));
|
||||
}
|
||||
}
|
||||
gamePackets.add(infoUpdatePacket);
|
||||
|
||||
@@ -230,7 +230,7 @@ public class ReplaySelectionList extends ObjectSelectionList<ReplaySelectionEntr
|
||||
}
|
||||
|
||||
private void notifyListUpdated() {
|
||||
this.setScrollAmount(this.getScrollAmount());
|
||||
this.refreshScrollAmount();
|
||||
this.screen.triggerImmediateNarration(true);
|
||||
this.screen.updateButtonStatus(null);
|
||||
}
|
||||
|
||||
@@ -26,8 +26,7 @@ import org.joml.Matrix4f;
|
||||
|
||||
public class WorldRenderHook {
|
||||
|
||||
public static void renderHook(PoseStack poseStack, float partialTick, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer,
|
||||
LightTexture lightTexture, Matrix4f projection) {
|
||||
public static void renderHook(PoseStack poseStack, float partialTick, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer, Matrix4f projection) {
|
||||
ReplayServer replayServer = Flashback.getReplayServer();
|
||||
if (replayServer == null || Flashback.isExporting()) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user