From 143d67f7bb9a3f3a92b8dca87aa50c33b52b0950 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 29 Jul 2019 01:15:02 +0800 Subject: [PATCH] 3.2 --- build.gradle | 2 +- src/main/java/me/shedaniel/lightoverlay/LightOverlay.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.44.0