From: Unknown Date: Sun, 28 Jul 2019 17:15:02 +0000 (+0800) Subject: 3.2 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=143d67f7bb9a3f3a92b8dca87aa50c33b52b0950;p=LightOverlay.git 3.2 --- diff --git a/build.gradle b/build.gradle index b4a53a2..1a190d4 100644 --- a/build.gradle +++ b/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" diff --git a/src/main/java/me/shedaniel/lightoverlay/LightOverlay.java b/src/main/java/me/shedaniel/lightoverlay/LightOverlay.java index 50685f2..c984b96 100644 --- a/src/main/java/me/shedaniel/lightoverlay/LightOverlay.java +++ b/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))