wisp-forest / gadget

Debugger's Delight
https://modrinth.com/mod/gadget
GNU Lesser General Public License v3.0
46 stars 8 forks source link

Inspecting item entities #10

Closed redstonekasi closed 1 year ago

redstonekasi commented 1 year ago

Not sure how you handle detecting which entity you're looking at, but I can't seem to inspect item entities.

BasiqueEvangelist commented 1 year ago

Right now it uses the game's crosshairTarget, which AFAIK doesn't target items. I might make it use a custom raycast method instead

BasiqueEvangelist commented 1 year ago

Fixed in 1abe08f112086f575e31b491526ccae541031e2e, will close after I release

redstonekasi commented 1 year ago

I'm not familiar with the functions used there, but that seems like it'd no longer allow you to inspect yourself?

BasiqueEvangelist commented 1 year ago

The relevant code for inspecting yourself is https://github.com/wisp-forest/gadget/blob/master/src/main/java/io/wispforest/gadget/client/GadgetClient.java#L116-L121, which still works

redstonekasi commented 1 year ago

Ah okay, I didn't see that, sorry!

BasiqueEvangelist commented 1 year ago

Fixed in 0.1.5