Jump to content

Extended names issue

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.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.6k

Files Sold

Total number of files sold.

1.6m

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.