Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invisible Items #646

Open
KingOfTurkey38 opened this issue Aug 17, 2022 · 0 comments
Open

Invisible Items #646

KingOfTurkey38 opened this issue Aug 17, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@KingOfTurkey38
Copy link

When you add items to an inventory in the Inventory Handler function HandlePlace() the item is invisible to the player. The player can't do any transactions in the slots where the item has been added. The items are visible when the player re-joins the server or interacts with a block.

func (s PlayerInventoryHandler) HandlePlace(ctx *event.Context, slot int, it item.Stack) {
	s.Player.Inventory().SetItem(slot+1, item.NewStack(item.Apple{}, 5))
}
@JustTalDevelops JustTalDevelops added the bug Something isn't working label Aug 17, 2022
@Sandertv Sandertv added this to the v0.9.0 milestone Aug 18, 2022
@DaPigGuy DaPigGuy modified the milestones: v0.9.0, v0.10.0 Dec 22, 2022
@Sandertv Sandertv modified the milestones: v0.10.0, v0.11.0 Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants