Commits
md_5 authored dff66dfccd6
56 56 | + final org.bukkit.block.Block bblock = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()); |
57 57 | + |
58 58 | + SpongeAbsorbEvent event = new SpongeAbsorbEvent(bblock, (List<org.bukkit.block.BlockState>) (List) blocks); |
59 59 | + world.getServer().getPluginManager().callEvent(event); |
60 60 | + |
61 61 | + if (event.isCancelled()) { |
62 62 | + return false; |
63 63 | + } |
64 64 | + |
65 65 | + for (CraftBlockState block : blocks) { |
66 - | + BlockPosition blockposition2 = new BlockPosition(block.getX(), block.getY(), block.getZ()); |
66 + | + BlockPosition blockposition2 = block.getPosition(); |
67 67 | + IBlockData iblockdata = world.getType(blockposition2); |
68 68 | + Fluid fluid = world.getFluid(blockposition2); |
69 69 | + Material material = iblockdata.getMaterial(); |
70 70 | + |
71 71 | + if (fluid.a(TagsFluid.WATER)) { |
72 72 | + if (iblockdata.getBlock() instanceof IFluidSource && ((IFluidSource) iblockdata.getBlock()).a(blockList, blockposition2, iblockdata) != FluidTypes.a) { |
73 73 | + // NOP |
74 74 | + } else if (iblockdata.getBlock() instanceof BlockFluids) { |
75 75 | + // NOP |
76 76 | + } else if (material == Material.WATER_PLANT || material == Material.REPLACEABLE_WATER_PLANT) { |