Skip to content

Commit

Permalink
LambDynamicLights v2.3.3+1.20.2
Browse files Browse the repository at this point in the history
Fix #186.
Fix #188.
  • Loading branch information
LambdAurora committed Nov 11, 2023
1 parent f961af5 commit 239c08b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@
### 2.3.3

- Added Japanese translations ([#187](https://github.com/LambdAurora/LambDynamicLights/pull/187)).
- Updated to Minecraft 1.20.2 ([#194](https://github.com/LambdAurora/LambDynamicLights/pull/194)).
- Fixed settings screen crash ([#186](https://github.com/LambdAurora/LambDynamicLights/issues/186)).
- Fixed usage of the Fabric mod identifier ([#188](https://github.com/LambdAurora/LambDynamicLights/issues/188)).

[SpruceUI]: https://github.com/LambdAurora/SpruceUI "SpruceUI page"
[pridelib]: https://github.com/Queerbric/pridelib "Pridelib page"
Expand Down
4 changes: 0 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
pluginManagement {
repositories {
maven {
name = "Quilt"
url = uri("https://maven.quiltmc.org/repository/release")
}
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
@Pseudo
@Mixin(targets = "net.fabricmc.fabric.impl.client.indigo.renderer.aocalc.AoCalculator", remap = false)
public abstract class AoCalculatorMixin {
@Dynamic
@Inject(method = "getLightmapCoordinates", at = @At(value = "RETURN", ordinal = 0), require = 0, cancellable = true, remap = false)
private static void onGetLightmapCoordinates(BlockRenderView world, BlockState state, BlockPos pos, CallbackInfoReturnable<Integer> cir) {
if (!world.getBlockState(pos).isOpaqueFullCube(world, pos) && LambDynLights.get().config.getDynamicLightsMode().isEnabled())
cir.setReturnValue(LambDynLights.get().getLightmapWithDynamicLight(pos, cir.getReturnValue()));
}
@Dynamic
@Inject(method = "getLightmapCoordinates", at = @At(value = "RETURN", ordinal = 0), require = 0, cancellable = true, remap = false)
private static void onGetLightmapCoordinates(BlockRenderView world, BlockState state, BlockPos pos, CallbackInfoReturnable<Integer> cir) {
if (!world.getBlockState(pos).isOpaqueFullCube(world, pos) && LambDynLights.get().config.getDynamicLightsMode().isEnabled())
cir.setReturnValue(LambDynLights.get().getLightmapWithDynamicLight(pos, cir.getReturnValue()));
}
}
11 changes: 5 additions & 6 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"LambdAurora"
],
"contact": {
"homepage": "https://www.curseforge.com/minecraft/mc-mods/lambdynamiclights",
"homepage": "https://modrinth.com/mod/lambdynamiclights",
"sources": "https://github.com/LambdAurora/LambDynamicLights.git",
"issues": "https://github.com/LambdAurora/LambDynamicLights/issues"
},
Expand All @@ -30,14 +30,13 @@
],
"depends": {
"fabricloader": ">=0.14.20",
"fabric": ">=0.83.0+1.20",
"minecraft": "~1.20",
"spruceui": ">=5.0.0",
"fabric-api": ">=0.90.7+1.20.2",
"minecraft": "~1.20.2",
"spruceui": ">=5.0.3",
"java": ">=17"
},
"recommends": {
"modmenu": ">=7.0.1",
"quilt_loader": ">=0.19.1"
"modmenu": ">=8.0.0"
},
"suggests": {
"ears": "*",
Expand Down

0 comments on commit 239c08b

Please sign in to comment.