diff options
author | md_5 <git@md-5.net> | 2018-08-10 19:43:15 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-08-10 19:43:15 +1000 |
commit | 0e1d79b44960de50725955c9bb87c2772c62855a (patch) | |
tree | 181447012b2e07ee09e166ad9d1440a3fa95634a /nms-patches | |
parent | eb36029f1cc9e4dffaa757da980c7d100cf86605 (diff) | |
download | craftbukkit-0e1d79b44960de50725955c9bb87c2772c62855a.tar craftbukkit-0e1d79b44960de50725955c9bb87c2772c62855a.tar.gz craftbukkit-0e1d79b44960de50725955c9bb87c2772c62855a.tar.lz craftbukkit-0e1d79b44960de50725955c9bb87c2772c62855a.tar.xz craftbukkit-0e1d79b44960de50725955c9bb87c2772c62855a.zip |
Correct error in previous patch
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/BlockRedstoneComparator.patch | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/nms-patches/BlockRedstoneComparator.patch b/nms-patches/BlockRedstoneComparator.patch index de272ab4..3e607fec 100644 --- a/nms-patches/BlockRedstoneComparator.patch +++ b/nms-patches/BlockRedstoneComparator.patch @@ -9,7 +9,17 @@ public class BlockRedstoneComparator extends BlockDiodeAbstract implements ITileEntity { public static final BlockStateEnum<BlockPropertyComparatorMode> MODE = BlockProperties.ap; -@@ -118,8 +120,18 @@ +@@ -65,7 +67,8 @@ + + @Nullable + private EntityItemFrame a(World world, EnumDirection enumdirection, BlockPosition blockposition) { +- List list = world.a(EntityItemFrame.class, new AxisAlignedBB((double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ(), (double) (blockposition.getX() + 1), (double) (blockposition.getY() + 1), (double) (blockposition.getZ() + 1)), (entityitemframe) -> { ++ // CraftBukkit - decompile error ++ List list = world.a(EntityItemFrame.class, new AxisAlignedBB((double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ(), (double) (blockposition.getX() + 1), (double) (blockposition.getY() + 1), (double) (blockposition.getZ() + 1)), (Predicate<EntityItemFrame>) (entityitemframe) -> { + return entityitemframe != null && entityitemframe.getDirection() == enumdirection; + }); + +@@ -118,8 +121,18 @@ boolean flag1 = ((Boolean) iblockdata.get(BlockRedstoneComparator.c)).booleanValue(); if (flag1 && !flag) { |