@@ -27,7 +27,7 @@ public partial class MultiplayerMod : PolyTechMod
27
27
public new const string
28
28
PluginGuid = "org.bepinex.plugins.MultiplayerMod" ,
29
29
PluginName = "Multiplayer Mod" ,
30
- PluginVersion = "1.1.0 " ;
30
+ PluginVersion = "1.1.1 " ;
31
31
32
32
public static ConfigDefinition
33
33
modEnabledDef = new ConfigDefinition ( "Multiplayer Mod" , "Enable/Disable Mod" ) ;
@@ -175,6 +175,7 @@ public static void Postfix(){
175
175
instance . pointerSprites [ PointerMode . NORMAL ] = instance . normalPointer ;
176
176
instance . pointerSprites [ PointerMode . MOVE ] = instance . movePointer ;
177
177
instance . pointerSprites [ PointerMode . SELECT_TOGGLE ] = instance . toggleSelectPointer ;
178
+ instance . pointerSprites [ PointerMode . ERASE ] = instance . normalPointer ;
178
179
}
179
180
}
180
181
public void Update ( ) {
@@ -357,7 +358,6 @@ public void OnBridgeAction(BridgeActionModel message)
357
358
) ) ;
358
359
if ( piston ) {
359
360
piston . m_Slider . SetNormalizedValue ( pistonProxy . m_NormalizedValue ) ;
360
- piston . m_Slider . MakeVisible ( ) ;
361
361
}
362
362
break ;
363
363
case actionType . SPLIT_JOINT :
@@ -547,7 +547,7 @@ public void processSyncRequest(SyncRequest request){
547
547
BridgeActionModel _message = new BridgeActionModel { action = actionType . SYNC_LAYOUT } ;
548
548
if ( instance . communication . isOwner ) {
549
549
instance . Logger . LogInfo ( "sending layout as requested" ) ;
550
- layout . layoutData = SandboxLayout . SerializeToProxies ( ) . SerializeBinary ( ) ;
550
+ layout . layoutData = SandboxLayout . SerializeToProxies ( SandboxLayout . CURRENT_VERSION ) . SerializeBinary ( ) ;
551
551
_message . content = layout . Serialize ( ) ;
552
552
instance . communication . Lobby . SendBridgeAction ( _message ) ;
553
553
return ;
@@ -625,7 +625,7 @@ public void backupLayout(){
625
625
try {
626
626
string filename = string . Format ( "{0:yyyy-MM-dd HH-mm-ss}.layout" , DateTime . Now ) ;
627
627
Logger . LogInfo ( "Performing Layout Backup..." ) ;
628
- byte [ ] layoutData = SandboxLayout . SerializeToProxies ( ) . SerializeBinary ( ) ;
628
+ byte [ ] layoutData = SandboxLayout . SerializeToProxies ( SandboxLayout . CURRENT_VERSION ) . SerializeBinary ( ) ;
629
629
string path = Path . Combine ( SandboxLayout . GetSavePath ( ) , backupFolder ) ;
630
630
//Logger.LogInfo(path + " " + filename);
631
631
if ( ! Directory . Exists ( path ) ) Directory . CreateDirectory ( path ) ;
@@ -932,7 +932,7 @@ public static void syncLayout(){
932
932
instance . serverIsFrozen = false ;
933
933
}
934
934
//uConsole.Log("Force Syncing layout with all connected clients...");
935
- layout . layoutData = SandboxLayout . SerializeToProxies ( ) . SerializeBinary ( ) ;
935
+ layout . layoutData = SandboxLayout . SerializeToProxies ( SandboxLayout . CURRENT_VERSION ) . SerializeBinary ( ) ;
936
936
layout . targetAllUsers = true ;
937
937
message . content = layout . Serialize ( ) ;
938
938
instance . communication . Lobby . SendBridgeAction ( message ) ;
0 commit comments