File tree Expand file tree Collapse file tree
src/main/java/dev/lambdaurora/lambdynlights/compat Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 "
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ spruceui = "11.0.0+26.2"
1313pridelib = " 1.7.0-beta.1+26.2"
1414
1515modmenu = " 18.0.0-beta.1"
16- trinkets = " 4.0 .0-beta.2 +26.1 "
16+ trinkets = " 4.1 .0-beta.1 +26.2 "
1717accessories = " 1.3.3-beta+1.21.8"
1818sodium = " 0.8.12+mc26.1.2"
1919
Original file line number Diff line number Diff line change 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 */
2323final 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 }
You can’t perform that action at this time.
0 commit comments