Title: Trap assertion error · NichtStudioCode/InvUI · Discussion #44 · GitHub
Open Graph Title: Trap assertion error · NichtStudioCode/InvUI · Discussion #44
X Title: Trap assertion error · NichtStudioCode/InvUI · Discussion #44
Description: Trap assertion error
Open Graph Description: Hey there, I'm trying to make a player inventory claim system. that allows players to claim another players inventory after they have died. So far I've got it mostly working but I keep getting a Tr...
X Description: Hey there, I'm trying to make a player inventory claim system. that allows players to claim another players inventory after they have died. So far I've got it mostly working but I keep gett...
Opengraph URL: https://github.com/NichtStudioCode/InvUI/discussions/44
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Trap assertion error","text":"Hey there, I'm trying to make a player inventory claim system. that allows players to claim another players inventory after they have died. So far I've got it mostly working but I keep getting a Trap assertion error but I can't figure out what the issue is. Any ideas? I have attached a screenshot that might help.
\n
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"It's this method:
\n// net.minecraft.world.item.ItemStack\nprivate void updateEmptyCacheFlag() {\n if (this.emptyCacheFlag && this == EMPTY) {\n throw new AssertionError(\"TRAP\");\n } else {\n this.emptyCacheFlag = false;\n this.emptyCacheFlag = this.isEmpty();\n }\n}
\nSeems like you're trying to change the amount of an empty stack (air)?
","upvoteCount":1,"url":"https://github.com/NichtStudioCode/InvUI/discussions/44#discussioncomment-6603279"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:4b611976-5862-f19d-3b6f-18a752f8b42f |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | CFBC:5B606:C2760:10B8D3:698F1C0A |
| html-safe-nonce | 9cebdf6c12bb6bce092e00cc9ebcc21239a86a167950fdb45dd1b2ce23241c16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkJDOjVCNjA2OkMyNzYwOjEwQjhEMzo2OThGMUMwQSIsInZpc2l0b3JfaWQiOiI3Mjg4OTQ2NjY3MzczOTI2NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 45a2abdad729fa5f0a54414e72458c1adcb78c944dbb7f669af78f24c4161c74 |
| hovercard-subject-tag | discussion:5461569 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/NichtStudioCode/InvUI/44/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/112a95f69c0fe7227cd0c2f7b65864ad377cfac7d081f280a8b49ace58b5e26a/NichtStudioCode/InvUI/discussions/44 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/112a95f69c0fe7227cd0c2f7b65864ad377cfac7d081f280a8b49ace58b5e26a/NichtStudioCode/InvUI/discussions/44 |
| og:image:alt | Hey there, I'm trying to make a player inventory claim system. that allows players to claim another players inventory after they have died. So far I've got it mostly working but I keep getting a Tr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2da1a0d1318592c9965539b12269c4641177dfabfc86c3807992efb13e1d96ff |
| turbo-cache-control | no-preview |
| go-import | github.com/NichtStudioCode/InvUI git https://github.com/NichtStudioCode/InvUI.git |
| octolytics-dimension-user_id | 51272202 |
| octolytics-dimension-user_login | NichtStudioCode |
| octolytics-dimension-repository_id | 331436728 |
| octolytics-dimension-repository_nwo | NichtStudioCode/InvUI |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 331436728 |
| octolytics-dimension-repository_network_root_nwo | NichtStudioCode/InvUI |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c9646ffd6f86b00952c2b39e3c62e15904eff1e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width