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

Activator rail check is done with rail minecart was on before it was moved

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.11.2, Minecraft 1.12 Pre-Release 2, Minecraft 1.13-pre10, Minecraft 1.14.1
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      The activator rail check is done with the rail block a minecart was on before it was moved. This means if it moves from a normal rail to an activator rail the minecart is not activated in this tick.

      How to reproduce

      1. Build a setup as shown in Setup.png
      2. Place some items in the chest
      3. Put a hopper minecart on the powered / golden rail
      4. Right click the hopper minecart after it reached the end of the track
        → It picked up one item

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.entity.item.EntityMinecart.onUpdate() tests if the block the minecart was on before it moved is an activator rail. Instead it should probably test the block the minecart is on after it was moved (on rails or derailed).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Racinante Michael
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: