question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ItemLoader.UseItemFrame doesn't get called.

See original GitHub issue

Description

ItemLoader.UseItemFrame doesn’t get called if item.useStyle is 1, 2, 3, 4 or 5.

Expected behavior

Called regardless of item.useStyle.

Actual behavior

if (this.inventory[this.selectedItem].useStyle == 5)
{
    ...
}
else if (ItemLoader.UseItemFrame(this.inventory[this.selectedItem], this))
{
    return;
}

Reproduction frequency

Every time.

Versions

tModLoader v0.10.1.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JavidPackcommented, Oct 1, 2018

This one should stay open actually, I looked into it and it does seem a bit odd that ItemLoader.UseItemFrame can’t affect the original useStyles.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting the name of an item in an item frame to its count
I have that working but I can't work out the next bit: I'd like to have the item's name be the quantity of...
Read more >
Solved - ItemFrame Issue
What I'm looking to do is when someone puts an item in a frame, I want to check what that item is. This...
Read more >
Scrapy ItemLoader item combining - python
As you can see in the JSON below, it's combining all items of a type together. How should I be handling this to...
Read more >
Item Loaders — Scrapy 2.10.0 documentation
Item Loaders¶. Item Loaders provide a convenient mechanism for populating scraped items. Even though items can be populated directly, Item Loaders provide a ......
Read more >
Minecraft 1.16.4: How to make a item frame with a tag - YouTube
Minecraft 1.16.4: How to make a item frame with a tag Become A Member ... How to get an unbreakable weapon in Minecraft...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found