Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-54119

Can place/take water/lava/lily pads outside world border and inside spawn protection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.18 Pre-release 1
    • Minecraft 14w18a, Minecraft 14w18b, Minecraft 14w19a, Minecraft 14w20b, Minecraft 14w21b, Minecraft 14w31a, Minecraft 14w32d, Minecraft 14w33a, Minecraft 14w33c, Minecraft 14w34b, Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.7, Minecraft 15w31a, Minecraft 15w33c, Minecraft 15w39b, Minecraft 15w39c, Minecraft 15w40b, Minecraft 15w43c, Minecraft 15w44b, Minecraft 15w45a, Minecraft 15w47a, Minecraft 15w47b, Minecraft 15w47c, Minecraft 15w49a, Minecraft 1.8.9, Minecraft 15w50a, Minecraft 15w51b, Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w16b, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w50a, Minecraft 18w07a, Minecraft 18w19b, Minecraft 18w22a, Minecraft 18w22c, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 19w36a, 1.15.1, 20w13b, 20w17a, 1.16.1, 20w29a, 1.16.2, 1.16.4, 20w48a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w14a, 21w18a, 1.17 Release Candidate 2, 1.17
    • Confirmed
    • Block states, Player
    • Low

      The bug

      When you try to interact with water, lily pads, or lava beyond the worldborder or inside the spawn protection the client and server will disagree about the outcome.
      This leads to ghost (client-side only) holes in the water, or standing water source blocks, or floating lily pads, or ghost objects in your inventory which all reset as soon as the server interacts with them (eg: empty ghostwater into valid playing space or relog).

      Code analysis

      The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

      The reason for this is that the method net.minecraft.world.World.isBlockModifiable(EntityPlayer, BlockPos) which is called to test if the player can modify the block returns always true for the client. For the server the overridden method net.minecraft.world.WorldServer.isBlockModifiable(EntityPlayer, BlockPos) tests if the block is not inside the spawn protection and inside the world border. As the client knows at least the worldborder information, the parent method probably should contain this code instead of only the server method.

        1. 2014-05-01_11.27.21.png
          2014-05-01_11.27.21.png
          194 kB
        2. 2014-05-01_20.48.19.png
          2014-05-01_20.48.19.png
          77 kB
        3. 2018-08-31_16.32.02.png
          2018-08-31_16.32.02.png
          1.53 MB
        4. MC-54119.mp4
          3.00 MB
        5. MC-54119 - 1.18.png
          MC-54119 - 1.18.png
          2.55 MB
        6. MC-54119 - 1.18 Pre-release 1.png
          MC-54119 - 1.18 Pre-release 1.png
          1.25 MB
        7. MC-54119 - 1.18 Pre-release 5.mp4
          5.35 MB
        8. MC-54119 - 1.18 Pre-release 5.png
          MC-54119 - 1.18 Pre-release 5.png
          2.04 MB

            Ulraf [Mojang] Ulraf
            happmacdonald Happ MacDonald
            Votes:
            39 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: