Skip to content

Commit 9fe38a6

Browse files
committed
Update CHANGELOG and Trinkets compatibility.
1 parent 1f22ec6 commit 9fe38a6

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,16 @@
621621
- Deprecated `lambdynlights:magma_cube` entity luminance, replaced by `lambdynlights:cube_mob_squish`.
622622
- Updated particle dynamic light ticking to mitigate performance issues with Particle Core, similar to AsyncParticles.
623623

624+
## 4.12.0
625+
626+
- Updated to Minecraft 26.2.
627+
- Added support for Sulfur Cubes.
628+
- A Sulfur Cube with a block emitting light will emit light.
629+
- When TNT explosion is active, explosive Sulfur Cubes mimic the behavior.
630+
- Updated Trinkets compatibility.
631+
- Updated [SpruceUI].
632+
- Updated [Yumi Minecraft Libraries: Foundation].
633+
624634
[SpruceUI]: https://github.com/LambdAurora/SpruceUI "SpruceUI page"
625635
[pridelib]: https://github.com/Queerbric/pridelib "Pridelib page"
626636
[Yumi Commons]: https://github.com/YumiProject/yumi-commons "Yumi Commons page"

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spruceui = "11.0.0+26.2"
1313
pridelib = "1.7.0-beta.1+26.2"
1414

1515
modmenu = "18.0.0-beta.1"
16-
trinkets = "4.0.0-beta.2+26.1"
16+
trinkets = "4.1.0-beta.1+26.2"
1717
accessories = "1.3.3-beta+1.21.8"
1818
sodium = "0.8.12+mc26.1.2"
1919

src/main/java/dev/lambdaurora/lambdynlights/compat/TrinketsCompat.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Represents the Trinkets compatibility layer.
1818
*
1919
* @author LambdAurora
20-
* @version 4.10.1
20+
* @version 4.12.0
2121
* @since 3.1.4
2222
*/
2323
final class TrinketsCompat implements CompatLayer {
@@ -26,15 +26,13 @@ public int getLivingEntityLuminanceFromItems(ItemLightSourceManager itemLightSou
2626
int luminance = 0;
2727
var component = TrinketsApi.getAttachment(entity);
2828

29-
/*for (var equipped : component.getAllEquipped()) {
30-
if (!equipped.getB().isEmpty()) {
31-
luminance = Math.max(luminance, itemLightSources.getLuminance(equipped.getB(), submergedInWater));
29+
for (var equipped : component.allEquipped(false)) {
30+
luminance = Math.max(luminance, itemLightSources.getLuminance(equipped.get(), submergedInWater));
3231

33-
if (luminance >= 15) {
34-
break;
35-
}
32+
if (luminance >= 15) {
33+
break;
3634
}
37-
}*/
35+
}
3836

3937
return luminance;
4038
}

0 commit comments

Comments
 (0)