520 {
521 int idx = slot.GetSlotIndex();
522 int mask = 1 << idx;
524 int newState = slot.GetWateredState();
525
527
528
530
531 if ((
g_Game.IsServer() || !
g_Game.IsMultiplayer()) && currentState != newState)
532 {
534
536 SetSynchDirty();
537 }
538 }
void UpdateSlotTexture(int slot_index)
This should be only called on server as the selections are synced to clients in C++.