Skip to content

Commit

Permalink
v1.1.3.3 - Minor tweak to attempt to remedy invalid MP mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
hamstar0 committed Apr 25, 2020
1 parent 7c74ab6 commit 4543126
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions MountedMagicMirrors/MyPlayer_Mirrors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ public bool TeleportToMirror( int tileX, int tileY ) {

Tile tile = Framing.GetTileSafely( tileX, tileY );
if( tile.type != mmmTileType ) {
//bool isInvalid = Main.netMode != 1 || TileChunkHelpers.IsTileSyncedForCurrentClient( tileX, tileY );
//if( isInvalid ) { }
if( MMMPlayer.IsMirrorTileInvalid(tileX, tileY) != false ) {
if( MMMPlayer.IsMirrorTileInvalid(tileX, tileY) == true ) {
if( MMMConfig.Instance.DebugModeInfo ) {
Main.NewText( "Cannot teleport - Invalid mirror tile at " + tileX + "," + tileY );
}
Expand Down
5 changes: 4 additions & 1 deletion MountedMagicMirrors/MyWorld_TileSectionMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ partial class MMMWorld : ModWorld {
////////////////

public void RegisterTileSectionTile( int tileX, int tileY ) {
this.TileSectionMapByTile.Set2D( tileX, tileY );
int sectionX = Netplay.GetSectionX( tileX );
int sectionY = Netplay.GetSectionY( tileY );

this.TileSectionMapByTile.Set2D( sectionX, sectionY );
}

////
Expand Down
2 changes: 1 addition & 1 deletion MountedMagicMirrors/build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
displayName = Mounted Magic Mirrors
author = hamstar
version = 1.1.3.2
version = 1.1.3.3
modReferences = HamstarHelpers@5.6.1
buildIgnore = *.csproj, *.user, *.bat, obj\*, bin\*, .vs\*, .git\*
homepage = https://forums.terraria.org/index.php?threads/mounted-magic-mirrors-fast-travel.83296/

0 comments on commit 4543126

Please sign in to comment.