Jump to content

[1.6.4] Entity Cleaner (aka. no more "Wrong location!" for arrows)


DoomFruit

Recommended Posts

This mod is focussed on fixing exactly one type of thing which *really* pissed me off as a server admin. Messages like this in the log file:

 

2014-09-29 14:28:33 [sEVERE] Wrong location! EntityArrow['arrow'/465, l='TRID_Modworld_04', x=792980147.89, y=-246752109.96, z=-537883796.54]

 

I'm not 100% sure what mod causes this, but I suspect that it may be Thaumic Tinkerer and it's Distortion wand focus (which is constantly active if you are wearing Robes of the Stratosphere) - see also http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1289299-thaumic-tinkerer-thaumcraft-addon-evolve-knowledge?comment=1598 for the official thread.

 

This is extremely unphysical (0.82 light-seconds of altitude on an *arrow*?), might cause unspecified bad effects on the game and will definitely annoy the server admin.

 

So I wrote a very small mod which runs the same check as Chunk.java (which is the source of this error message) and OBLITERATES any arrow which fails this test rather than just logging it again and again and again. What you see in the log file now looks more like this:

 

2014-09-29 14:28:33 [sEVERE] Wrong location! EntityArrow['arrow'/465, l='TRID_Modworld_04', x=792980147.89, y=-246752109.96, z=-537883796.54]

2014-09-29 14:28:33 [iNFO] Errant entity detected.

2014-09-29 14:28:33 [iNFO] Parent entity unknown.

2014-09-29 14:28:33 [iNFO] Attempting to use setDead() on the entity.

 

This arrow will never bother me again.

 

Do whatever you like with this mod and it's source. I don't care.

 

 

Mod: http://www.mediafire.com/download/16vn1vbv79jjd41/Entity_Cleaner_v1.0_(MC_r1.6.4).zip

Source: http://www.mediafire.com/download/0czjhbzccw62hng/Entity_Cleaner_v1.0_Source_(MC_r1.6.4).zip

 

Yes, 1.6.4. Bite me.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.