fix(houses): Fixes custom house packets (#594)

This commit is contained in:
Kamron Batman 2021-05-11 00:07:37 -07:00 • committed by GitHub
parent be9d355b33
commit 00ff4b9247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 52 deletions

View file

@ -1964,13 +1964,12 @@ namespace Server.Multis
}
public void SendGeneralInfoTo(NetState state) => state.SendDesignStateGeneral(Foundation.Serial, Revision);
public void SendDetailedInfoTo(NetState state) => state?.Send(PacketCache ??= SendDetails(Foundation.Serial));
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public byte[] SendDetails(Serial house) => HousePackets.CreateHouseDesignStateDetailed(
house,
Revision,
Components
public void SendDetailedInfoTo(NetState state) => state?.Send(
PacketCache ??= HousePackets.CreateHouseDesignStateDetailed(
Foundation.Serial,
Revision,
Components
)
);
public void FreezeFixtures()