-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes most IP issues. Chunks in other visible dimensions aren't reloa…
…ded when conditions change, but most everything else works well enough as far as I can tell.
- Loading branch information
1 parent
aba43ef
commit 4c0800e
Showing
8 changed files
with
98 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/dev/hephaestus/fiblib/mixin/CDSMAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package dev.hephaestus.fiblib.mixin; | ||
|
||
import com.qouteall.immersive_portals.chunk_loading.ChunkDataSyncManager; | ||
import com.qouteall.immersive_portals.chunk_loading.DimensionalChunkPos; | ||
import com.qouteall.immersive_portals.ducks.IEThreadedAnvilChunkStorage; | ||
import net.minecraft.server.network.ServerPlayerEntity; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
@Mixin(ChunkDataSyncManager.class) | ||
public interface CDSMAccessor { | ||
@Invoker | ||
void invokeSendChunkDataPacketNow(ServerPlayerEntity player, DimensionalChunkPos pos, IEThreadedAnvilChunkStorage tacs); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/dev/hephaestus/fiblib/mixin/packets/chunkdata/MixinChunkDataSyncManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package dev.hephaestus.fiblib.mixin.packets.chunkdata; | ||
|
||
import com.qouteall.immersive_portals.chunk_loading.ChunkDataSyncManager; | ||
import com.qouteall.immersive_portals.chunk_loading.DimensionalChunkPos; | ||
import com.qouteall.immersive_portals.ducks.IEThreadedAnvilChunkStorage; | ||
import dev.hephaestus.fiblib.impl.FibLib; | ||
import net.minecraft.server.network.ServerPlayerEntity; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(value = ChunkDataSyncManager.class, remap = false) | ||
public class MixinChunkDataSyncManager { | ||
@Inject(method = "sendChunkDataPacketNow", at = @At("HEAD")) | ||
private void setPlayer(ServerPlayerEntity player, DimensionalChunkPos chunkPos, IEThreadedAnvilChunkStorage ieStorage, CallbackInfo ci) { | ||
FibLib.PLAYER.set(player); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters