Skip to content

inventory_operations.drop always drops in north direction #149

Description

@zachanator070

name: Bug report
about: Report an issue of the mod crashing or behaving in an unexpected way
title: ''
labels: bug
assignees: ''


Describe the bug
When using the inventory_operations.drop method in a robot lua script, the items dropped always drop in the north direction regardless of the direction parameter given to the method.

To Reproduce
Steps to reproduce the behavior:

  1. Singleplayer
  2. write a script test.lua with the following contents on a robot:
#!/usr/bin/lua
d = require("devices")
inv = d:find("inventory_operations")
inv:drop(1, "front")
inv:drop(1, "up")
inv:drop(1, "down")
  1. make the script executable with chmod +x test.lua
  2. Ensure there are at least 3 items in the first inventory slot of the robot
  3. run the script ./test.lua

Log files
Please post your log files (client and server) to gist and link them here.
If it's a crash report, please also upload the crash report to gist and link it here.

Expected behavior
An items should drop in the front, upwards, and downwards in relation to the direction the robot is facing

Screenshots
Image

Kind of hard to tell, but the robot is facing west in this. All items are dropped to the north despite the different directions given to the drop method in the test script.

Versions (please complete the following information):

  • Minecraft: 1.20.1
  • Forge: 47.4.10
  • oc2: 2.2.13

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions