@@ -27,7 +27,7 @@ public partial class MultiplayerMod : PolyTechMod
2727 public new const string
2828 PluginGuid = "org.bepinex.plugins.MultiplayerMod" ,
2929 PluginName = "Multiplayer Mod" ,
30- PluginVersion = "1.1.0 " ;
30+ PluginVersion = "1.1.1 " ;
3131
3232 public static ConfigDefinition
3333 modEnabledDef = new ConfigDefinition ( "Multiplayer Mod" , "Enable/Disable Mod" ) ;
@@ -175,6 +175,7 @@ public static void Postfix(){
175175 instance . pointerSprites [ PointerMode . NORMAL ] = instance . normalPointer ;
176176 instance . pointerSprites [ PointerMode . MOVE ] = instance . movePointer ;
177177 instance . pointerSprites [ PointerMode . SELECT_TOGGLE ] = instance . toggleSelectPointer ;
178+ instance . pointerSprites [ PointerMode . ERASE ] = instance . normalPointer ;
178179 }
179180 }
180181 public void Update ( ) {
@@ -357,7 +358,6 @@ public void OnBridgeAction(BridgeActionModel message)
357358 ) ) ;
358359 if ( piston ) {
359360 piston . m_Slider . SetNormalizedValue ( pistonProxy . m_NormalizedValue ) ;
360- piston . m_Slider . MakeVisible ( ) ;
361361 }
362362 break ;
363363 case actionType . SPLIT_JOINT :
@@ -547,7 +547,7 @@ public void processSyncRequest(SyncRequest request){
547547 BridgeActionModel _message = new BridgeActionModel { action = actionType . SYNC_LAYOUT } ;
548548 if ( instance . communication . isOwner ) {
549549 instance . Logger . LogInfo ( "sending layout as requested" ) ;
550- layout . layoutData = SandboxLayout . SerializeToProxies ( ) . SerializeBinary ( ) ;
550+ layout . layoutData = SandboxLayout . SerializeToProxies ( SandboxLayout . CURRENT_VERSION ) . SerializeBinary ( ) ;
551551 _message . content = layout . Serialize ( ) ;
552552 instance . communication . Lobby . SendBridgeAction ( _message ) ;
553553 return ;
@@ -625,7 +625,7 @@ public void backupLayout(){
625625 try {
626626 string filename = string . Format ( "{0:yyyy-MM-dd HH-mm-ss}.layout" , DateTime . Now ) ;
627627 Logger . LogInfo ( "Performing Layout Backup..." ) ;
628- byte [ ] layoutData = SandboxLayout . SerializeToProxies ( ) . SerializeBinary ( ) ;
628+ byte [ ] layoutData = SandboxLayout . SerializeToProxies ( SandboxLayout . CURRENT_VERSION ) . SerializeBinary ( ) ;
629629 string path = Path . Combine ( SandboxLayout . GetSavePath ( ) , backupFolder ) ;
630630 //Logger.LogInfo(path + " " + filename);
631631 if ( ! Directory . Exists ( path ) ) Directory . CreateDirectory ( path ) ;
@@ -932,7 +932,7 @@ public static void syncLayout(){
932932 instance . serverIsFrozen = false ;
933933 }
934934 //uConsole.Log("Force Syncing layout with all connected clients...");
935- layout . layoutData = SandboxLayout . SerializeToProxies ( ) . SerializeBinary ( ) ;
935+ layout . layoutData = SandboxLayout . SerializeToProxies ( SandboxLayout . CURRENT_VERSION ) . SerializeBinary ( ) ;
936936 layout . targetAllUsers = true ;
937937 message . content = layout . Serialize ( ) ;
938938 instance . communication . Lobby . SendBridgeAction ( message ) ;
0 commit comments