Skip to content

Commit

Permalink
1.20.4 compatible (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
joestr committed Feb 2, 2024
1 parent 3a5d78d commit 03b7222
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx2G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.20.2
quilt_mappings=3
loader_version=0.14.24
minecraft_version=1.20.4
quilt_mappings=2
loader_version=0.15.3
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_api_version=0.90.7+1.20.2
fabric_api_version=0.91.3+1.20.4

# Mod Properties
mod_version = 2.3.3
mod_version = 2.3.4
maven_group = dev.lambdaurora
archives_base_name = lambdynamiclights
modrinth_id=yBW8D80W
Expand All @@ -20,5 +20,5 @@ curseforge_id=393442
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
spruceui_version=5.0.3+1.20.2
pridelib_version=1.2.0+1.19.4
modmenu_version=8.0.0
sodium_version=mc1.20.2-0.5.3
modmenu_version=9.0.0
sodium_version=mc1.20.3-0.5.5
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public abstract class WorldMixin {
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/chunk/BlockEntityTickInvoker;tick()V", shift = At.Shift.BEFORE),
locals = LocalCapture.CAPTURE_FAILEXCEPTION
)
private void onBlockEntityTick(CallbackInfo ci, Profiler profiler, Iterator<BlockEntity> iterator, BlockEntityTickInvoker blockEntityTickInvoker) {
if (this.isClient() && LambDynLights.get().config.getBlockEntitiesLightSource().get()) {
private void onBlockEntityTick(CallbackInfo ci, Profiler profiler, Iterator<BlockEntity> iterator, boolean isRemoved, BlockEntityTickInvoker blockEntityTickInvoker) {
if (this.isClient() && LambDynLights.get().config.getBlockEntitiesLightSource().get() && !isRemoved) {
var blockEntity = this.getBlockEntity(blockEntityTickInvoker.getPos());
if (blockEntity != null)
((DynamicLightSource) blockEntity).dynamicLightTick();
Expand Down

0 comments on commit 03b7222

Please sign in to comment.