Jump to content

Extended names issue

1.0.6

FuelStream
FuelStream

Posted

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.

Guest

Posted

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.

Guest

Posted

Changed Status from Pending to No Response

Guest

Posted

Changed Status from No Response to

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

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.