Unknown 6 years ago
parent
commit
143d67f7bb
2 changed files with 3 additions and 1 deletions
  1. 1 1
      build.gradle
  2. 2 0
      src/main/java/me/shedaniel/lightoverlay/LightOverlay.java

+ 1 - 1
build.gradle

@@ -11,7 +11,7 @@ buildscript {
 apply plugin: 'net.minecraftforge.gradle'
 apply plugin: 'eclipse'
 
-version = "3.1"
+version = "3.2"
 group = "me.shedaniel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
 archivesBaseName = "LightOverlay"
 

+ 2 - 0
src/main/java/me/shedaniel/lightoverlay/LightOverlay.java

@@ -81,6 +81,8 @@ public class LightOverlay {
         BlockState blockBelowState = world.getBlockState(pos.down());
         BlockState blockUpperState = world.getBlockState(pos);
         VoxelShape upperCollisionShape = blockUpperState.getCollisionShape(world, pos, ISelectionContext.forEntity(playerEntity));
+        if (!blockUpperState.getFluidState().isEmpty())
+            return CrossType.NONE;
         /* WorldEntitySpawner.func_222266_a */
         // Check if the outline is full
         if (Block.doesSideFillSquare(upperCollisionShape, Direction.UP))