Skip to content

Commit

Permalink
Vanilla Client Support and Entity Tracking (#6)
Browse files Browse the repository at this point in the history
* Fixed improper form syntax

* Fixed debug chunk border not rendering properly on shifted worlds.

* Properly indicates when a coordinate is past its bounds

* Light updates received incorrect chunk coordinates

* Refactored "util" folder to "core"

* Moved Serverbound packet client transformations to server

* Code rewrite for vanilla client support.

* Injected interface refactor

* Entity location handling for wrapped bounds.

* - Vanilla Client Support
- Wrapped entity tracking and interaction (fixed elytras)
  • Loading branch information
FamroFexl authored Oct 14, 2024
1 parent e7adcca commit 87bdc14
Show file tree
Hide file tree
Showing 51 changed files with 1,107 additions and 629 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bug Report
description: Report Problems with Circumnavigate
title: ""
title: "[Bug]: "
labels: "bug"
body:
- type: input
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Feature request
description: Request a feature
title: ""
title: "[Feature Request]: "
labels: "enhancement"
body:
- type: textarea
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

import com.fexl.circumnavigate.client.storage.TransformersStorage;
import com.fexl.circumnavigate.network.packet.ClientboundWrappingDataPacket;
import com.fexl.circumnavigate.util.WorldTransformer;
import com.fexl.circumnavigate.core.WorldTransformer;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
import net.minecraft.client.Minecraft;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.Level;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package com.fexl.circumnavigate.client.storage;

import com.fexl.circumnavigate.options.WrappingSettings;
import com.fexl.circumnavigate.util.WorldTransformer;
import com.fexl.circumnavigate.core.WorldTransformer;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.Level;

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package com.fexl.circumnavigate.mixin.client.chunkHandle;

import com.fexl.circumnavigate.util.WorldTransformer;
import com.fexl.circumnavigate.core.WorldTransformer;
import net.minecraft.client.Minecraft;
import net.minecraft.client.OptionInstance;
import net.minecraft.client.Options;
Expand All @@ -21,7 +21,7 @@ public abstract class OptionsMixin {
@Inject(method = "getEffectiveRenderDistance", at = @At("HEAD"), cancellable = true)
public void getEffectiveRenderDistance(CallbackInfoReturnable<Integer> cir) {
WorldTransformer transformer = Minecraft.getInstance().level.getTransformer();
//System.out.println("Server: " + accessor.getServerRenderDistance() + " Client: " + accessor.getRenderDistance().get());

int renderDistance = accessor.getServerRenderDistance() > 0 ? Math.min(accessor.getRenderDistance().get(), accessor.getServerRenderDistance()) : accessor.getRenderDistance().get();
cir.setReturnValue(transformer.limitViewDistance(renderDistance));
}
Expand Down
Loading

0 comments on commit 87bdc14

Please sign in to comment.