]> git.lizzy.rs Git - LightOverlay.git/commitdiff
3.2
authorUnknown <shekwancheung0528@gmail.com>
Sun, 28 Jul 2019 17:15:02 +0000 (01:15 +0800)
committerUnknown <shekwancheung0528@gmail.com>
Sun, 28 Jul 2019 17:15:02 +0000 (01:15 +0800)
build.gradle
src/main/java/me/shedaniel/lightoverlay/LightOverlay.java

index b4a53a287a369f95f3fcabd820c170f7e2cd70b5..1a190d4cb7ba52996ba9258298c970a1eeb3ca39 100644 (file)
@@ -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"
 
index 50685f2e4d52a3f9bb0d8052cf18a908672eabb0..c984b96e364384df85a1fe06f8b27bb3cbbc96f4 100644 (file)
@@ -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))