Skip to content

Commit

Permalink
Fixes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
senseiwells committed Sep 23, 2024
1 parent e7f4459 commit efcbb90
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 51 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ repositories {
}

dependencies {
modImplementation("me.senseiwells:server-replay:1.1.3+1.21.1")
modImplementation("me.senseiwells:server-replay:1.1.4+1.21.1")
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repositories {
}


val modVersion = "1.1.3"
val modVersion = "1.1.4"
val releaseVersion = "${modVersion}+mc${libs.versions.minecraft.get()}"
version = releaseVersion
group = "me.senseiwells"
Expand Down
2 changes: 1 addition & 1 deletion libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions = "0.3.1"
carpet = "1.4.147"
voicechat = "fabric-1.21.1-2.5.20"
voicechat-api = "2.5.0"
vmp = "0.2.0+beta.7.162+1.21"
vmp = "0.2.0+beta.7.168+1.21.1"
c2me = "0.3.0+alpha.0.206+1.21.1"
servux = "1.21-0.3.8-sakura.1"
syncmatica = "1.21-sakura.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,46 +31,6 @@ protected TheChunkSystemMixin(ThreadFactory threadFactory) {
super(threadFactory);
}

// @ModifyExpressionValue(
// method = "vanillaIf$setLevel",
// at = @At(
// value = "INVOKE",
// target = "Lcom/ishland/c2me/rewrites/chunksystem/common/TheChunkSystem;addTicket(Ljava/lang/Object;Lcom/ishland/flowsched/scheduler/ItemTicket$TicketType;Ljava/lang/Object;Lcom/ishland/flowsched/scheduler/ItemStatus;Ljava/lang/Runnable;)Lcom/ishland/flowsched/scheduler/ItemHolder;"
// )
// )
// private ItemHolder<ChunkPos, ChunkState, ChunkLoadingContext, NewChunkHolderVanillaInterface> onLoadChunk(
// ItemHolder<ChunkPos, ChunkState, ChunkLoadingContext, NewChunkHolderVanillaInterface> original,
// @Local(ordinal = 0) NewChunkStatus oldStatus
// ) {
// if (oldStatus == this.getUnloadedStatus()) {
// ChunkHolder holder = original.getUserData().get();
// ServerLevel level = ((ChunkMapAccessor) this.tacs).getLevel();
// for (ChunkRecorder recorder : ChunkRecorders.containing(level.dimension(), original.getKey())) {
// ((ChunkRecordable) holder).addRecorder(recorder);
// }
// }
// return original;
// }
//
// @Inject(
// method = "vanillaIf$setLevel",
// at = @At(
// value = "INVOKE",
// target = "Lit/unimi/dsi/fastutil/longs/Long2IntMap;remove(J)I"
// )
// )
// private void onUnloadChunk(
// long pos,
// int level,
// CallbackInfoReturnable<ChunkHolder> cir,
// @Local ChunkPos key
// ) {
// if (this.managedTickets.containsKey(pos)) {
// ItemHolder<ChunkPos, ChunkState, ChunkLoadingContext, NewChunkHolderVanillaInterface> item = this.getHolder(key);
// ((ChunkRecordable) item.getUserData().get()).removeAllRecorders();
// }
// }

@Inject(
method = "onItemUpgrade",
at = @At("HEAD")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import net.minecraft.server.level.ServerPlayer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Coerce;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

Expand All @@ -19,17 +18,14 @@ public class NearbyEntityTrackingMixin {
@Inject(
method = "tick",
at = @At(
value = "INVOKE_ASSIGN",
value = "INVOKE",
target = "Lcom/ishland/vmp/common/playerwatching/ServerPlayerEntityExtension;vmpTracking$updatePosition()V"
),
remap = false
)
)
@SuppressWarnings("resource")
private void onPlayerTrackingTick(
@Coerce Object ticketManager,
CallbackInfo ci,
@Local(name = "player") ServerPlayer player,
@Local(name = "isPlayerPositionUpdated") boolean positionUpdated
@Local ServerPlayer player,
@Local boolean positionUpdated
) {
if (positionUpdated) {
ServerLevel level = player.serverLevel();
Expand Down

0 comments on commit efcbb90

Please sign in to comment.