Skip to content

Commit

Permalink
v1.7.2.1
Browse files Browse the repository at this point in the history
* Fixed API use of Mod.Call()
* Refactored net code to use PacketProtocol
  • Loading branch information
hamstar0 committed May 1, 2018
1 parent 36c700c commit 8d428ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions WormholesMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,21 @@ public override void AddRecipeGroups() {
}


////////////////

public override object Call( params object[] args ) {
if( args.Length == 0 ) { throw new Exception( "Undefined call type." ); }

string call_type = args[0] as string;
if( args == null ) { throw new Exception( "Invalid call type." ); }

var new_args = new object[args.Length - 1];
Array.Copy( args, 1, new_args, 0, args.Length - 1 );

return WormholesAPI.Call( call_type, new_args );
}


////////////////

public override void PostDrawInterface( SpriteBatch sb ) {
Expand Down
4 changes: 2 additions & 2 deletions build.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
author = hamstar
version = 1.7.2
version = 1.7.2.1
displayName = Wormholes
modReferences = HamstarHelpers@1.4.6
modReferences = HamstarHelpers@1.4.6.1
buildIgnore = *.csproj, *.user, obj\*, bin\*, .vs\*
includePDB = true
homepage = https://forums.terraria.org/index.php?threads/wormholes-and-also-scroll-of-town-portal.52701/

0 comments on commit 8d428ec

Please sign in to comment.