Skip to content

Place Block II with itemtype can only place from hotbar #226

Description

@Robotgiggle

Minecraft version

1.20.1

Hex Casting version

0.11.3

Hexal version

0.3.1

Issue description

When using Place Block II with an itemtype, it calls env.queryForMatchingStack() to attempt to find a stack in your inventory to place from. However, this base hex method can only search the hotbar, not the entire inventory (see FallingColors/HexMod#1052). Thus, even if you have a block matching the specified itemtype in your inventory, the spell won't see it unless it's in your hotbar.

Steps to reproduce

  1. Get an itemtype for some placeable item
  2. Put that item in your inventory, but not your hotbar
  3. Attempt to use Place Block II

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions