Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

Commit

Permalink
Minor changes and bump to 0.3.0
Browse files Browse the repository at this point in the history
- Update to VS 1.5.4
  No changes required - doing it anyway
- Set RequiredOnClient to false
  • Loading branch information
copygirl committed May 28, 2018
1 parent c06fc26 commit 3a797d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CarryCapacity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<AssemblyTitle>CarryCapacity</AssemblyTitle>
<Authors>copygirl</Authors>
<Version>0.3.0-rc1</Version>
<Version>0.3.0</Version>

<Description>Vintage Story mod which adds the capability to carry various things</Description>
<RepositoryUrl>https://github.com/copygirl/CarryCapacity</RepositoryUrl>
Expand Down
5 changes: 3 additions & 2 deletions resources/modinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"type": "code",
"name": "CarryCapacity",
"modid": "carrycapacity",
"version": "0.3.0-rc1",
"version": "0.3.0",

"description" : "Adds the capability to carry various things",
"website": "https://github.com/copygirl/CarryCapacity",
"authors": [ "copygirl" ],

"requiredOnClient": false,
"dependencies": {
"game": "1.5.3-rc1"
"game": "1.5.4"
}
}
10 changes: 5 additions & 5 deletions src/BlockBehaviorCarryable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ bool TryGetVec3f(string key, out Vec3f result) {
return success;
}

if (TryGetVec3f("translation" , out var t)) Transform.Translation = t;
if (TryGetVec3f("rotation" , out var r)) Transform.Rotation = r;
if (TryGetVec3f("origin" , out var o)) Transform.Origin = o;
if (TryGetFloat("scale" , out var s)) Transform.Scale = s;
if (TryGetVec3f("translation" , out var t)) Transform.Translation = t;
if (TryGetVec3f("rotation" , out var r)) Transform.Rotation = r;
if (TryGetVec3f("origin" , out var o)) Transform.Origin = o;
if (TryGetFloat("scale" , out var s)) Transform.Scale = s;

if (TryGetFloat("interactDelay", out var d)) InteractDelay = d;
if (TryGetFloat("interactDelay" , out var d)) InteractDelay = d;
}

public override bool OnPlayerBlockInteract(
Expand Down
3 changes: 2 additions & 1 deletion src/CarrySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
[assembly: ModInfo( "CarryCapacity",
Description = "Adds the capability to carry various things",
Website = "https://github.com/copygirl/CarryCapacity",
Authors = new []{ "copygirl" })]
Authors = new []{ "copygirl" },
RequiredOnClient = false )]

namespace CarryCapacity
{
Expand Down

0 comments on commit 3a797d1

Please sign in to comment.