Jump to content

Extended names issue

No Response 1.0.6

Ex.
Adding this
"sign.post.town": "assets/prefabs/deployable/signs/sign.post.town.prefab",
to the config, also allows sign.post.town.roof to be placed if held in hand.
But, when placing said sign.post.town.roof it actually places the sign.post.town

Same thing happens even if I add
"sign.post.town.roof": "assets/prefabs/deployable/signs/sign.post.town.roof.prefab",
to the config.

I'm guessing this has to do with the way shortnames/paths are read by the plugin.

Share this comment


Link to comment

Its to do with I used contains for the checking.
You can fix them by finding

if (heldEntity.info.shortname.Contains(shortname.Key))
and
if (hit.GetEntity().ToString().Contains(Itemcheck.Key))

Replace them with.
if (heldEntity.info.shortname == (shortname.Key))
and
if (hit.GetEntity().ToString() == (Itemcheck.Key))

Iv been testing this on my server for the last few days so far and no issue but want to run it a bit longer before I update here.

  • Like 1

Share this comment


Link to comment
290.3k

Downloads

Total number of downloads.

1.4k

Customers

Total customers served.

17.9k

Files Sold

Total number of files sold.

277.7k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.