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

Butterfly Statue spawns catchable butterflies #1311

Closed
levi-middleton opened this issue Oct 17, 2016 · 5 comments · Fixed by Pryaxis/TSAPI#106
Closed

Butterfly Statue spawns catchable butterflies #1311

levi-middleton opened this issue Oct 17, 2016 · 5 comments · Fixed by Pryaxis/TSAPI#106
Assignees
Labels

Comments

@levi-middleton
Copy link

Tested in 4.3.19 and 4.3.20, butterfly statues spawn butterflies that can be caught with either bug net. According to the wiki, critters spawned by critter statues should disappear instead of being caught. I have not yet been able to test this against stock TerrariaServer or with other statues.

@levi-middleton
Copy link
Author

levi-middleton commented Oct 17, 2016

Just tested 4.3.20 bunny statues against stock. In stock, spawned bunnies go poof when catching them with a bug net. In 4.3.20, you get bunnies. I suspect all spawned critters are catchable in 4.3.20.

@Ijwu
Copy link
Contributor

Ijwu commented Oct 17, 2016

@WhiTexz or @Enerdy I think you know more about our current packet handling than me. Do we swallow statue spawn packets and just spawn the NPC ourselves? That could cause this if we are spawning incorrect NPCs.

@levi-middleton
Copy link
Author

I notice that TerrariaServerAPI.Terraria.Wiring line 1926 sets SpawnedFromStatue to true, but I don't see this field being read from anywhere (except TerrariaServerAPI.Terraria.NPC line 61193, where it's stored as a temp value and then rewritten onto the NPC object after defaults have been set).

@Simon311
Copy link
Contributor

Our decompile is at fault. I've compared current TSAPI NPC.cs against my DotPeek 1.3.3.3 decompile and I can confirm TSAPI is completely missing any checks associated with SpawnedFromStatue.
Now let's blame someone for this

@hakusaro
Copy link
Member

Reopning because changelog wasn't updated.

@hakusaro hakusaro reopened this Oct 22, 2016
@hakusaro hakusaro self-assigned this Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants