Skip to content

Commit

Permalink
Update gitignore and little change.
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdAurora committed Oct 28, 2020
1 parent 5d99e04 commit 5454417
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# LambdAurora's ignore file
#
# v0.13
# v0.15

# JetBrains
.idea/
Expand Down Expand Up @@ -53,6 +53,8 @@ __pycache__/
# OS
## Windows
desktop.ini
# MacOS
.DS_Store

# File types
*.dll
Expand All @@ -61,10 +63,13 @@ desktop.ini
*.lib
lib*.a
*.png~
*.tar.?z

# Common
bin/
build/
dist/
lib/
obj/
run/
target/
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ private void onGetBlockLight(T entity, BlockPos pos, CallbackInfoReturnable<Inte
return; // Do not touch to the value.

int vanilla = cir.getReturnValueI();
int posLuminance = (int) LambDynLights.get().getDynamicLightLevel(pos);
int entityLuminance = ((DynamicLightSource) entity).getLuminance();
if (entityLuminance >= 15)
cir.setReturnValue(entityLuminance);

int posLuminance = (int) LambDynLights.get().getDynamicLightLevel(pos);

cir.setReturnValue(Math.max(Math.max(vanilla, entityLuminance), posLuminance));
}
Expand Down

0 comments on commit 5454417

Please sign in to comment.