forked from Sk1erLLC/Patcher
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
31 changed files
with
485 additions
and
258 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
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
72 changes: 0 additions & 72 deletions
72
src/main/java/club/sk1er/patcher/asm/external/mods/optifine/RenderTransformer.java
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
src/main/java/club/sk1er/patcher/asm/render/world/entity/RenderFireballTransformer.java
This file was deleted.
Oops, something went wrong.
74 changes: 0 additions & 74 deletions
74
src/main/java/club/sk1er/patcher/asm/render/world/entity/RenderXPOrbTransformer.java
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package club.sk1er.patcher.hooks; | ||
|
||
import net.minecraft.util.EnumFacing; | ||
|
||
import java.util.BitSet; | ||
import java.util.EnumMap; | ||
|
||
public class FaceDataHook { | ||
|
||
private final EnumMap<EnumFacing, BitSet> data; | ||
private final int vMax; | ||
|
||
public FaceDataHook(final int uMax, final int vMax) { | ||
this.data = new EnumMap<>(EnumFacing.class); | ||
this.vMax = vMax; | ||
int size = uMax * vMax; | ||
BitSet initialData = new BitSet(size); | ||
this.data.put(EnumFacing.WEST, initialData); | ||
this.data.put(EnumFacing.EAST, new BitSet(size)); | ||
this.data.put(EnumFacing.UP, new BitSet(size)); | ||
this.data.put(EnumFacing.DOWN, new BitSet(size)); | ||
} | ||
|
||
public void set(final EnumFacing facing, final int u, final int v) { | ||
BitSet dataSet = this.data.get(facing); | ||
dataSet.set(getIndex(u, v)); | ||
} | ||
|
||
public boolean get(final EnumFacing facing, final int u, final int v) { | ||
BitSet dataSet = this.data.get(facing); | ||
return dataSet.get(getIndex(u, v)); | ||
} | ||
|
||
private int getIndex(final int u, final int v) { | ||
return v * this.vMax + u; | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
.../java/club/sk1er/patcher/mixins/bugfixes/EntityRendererMixin_AdjustEyeHeightLighting.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,24 @@ | ||
package club.sk1er.patcher.mixins.bugfixes; | ||
|
||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.renderer.EntityRenderer; | ||
import net.minecraft.util.BlockPos; | ||
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.ModifyArg; | ||
|
||
@Mixin(EntityRenderer.class) | ||
public class EntityRendererMixin_AdjustEyeHeightLighting { | ||
|
||
//#if MC==10809 | ||
@Shadow | ||
private Minecraft mc; | ||
|
||
@ModifyArg(method = "updateRenderer", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/multiplayer/WorldClient;getLightBrightness(Lnet/minecraft/util/BlockPos;)F")) | ||
private BlockPos patcher$accountForEyes(BlockPos par1) { | ||
return new BlockPos(mc.getRenderViewEntity().getPositionEyes(1.0F)); | ||
} | ||
//#endif | ||
|
||
} |
Oops, something went wrong.