Update broke this modFixed

Hi there after todays update we get this error:

EditTool - Failed to compile: EditTool.cs(652,28): error CS1061: Type `Network.Server' does not contain a definition for `write' and no extension method `write' of type `Network.Server' could be found. Are you missing an assembly reference?

same...

Failed to compile: EditTool.cs(652,28): error CS1061: Type `Network.Server' does not contain a definition for `write' and no extension method `write' of type `Network.Server' could be found. Are you missing an assembly reference?

Can be fixed by changing the following.

Line 645-651 - Change:

                if (Net.sv.write.Start())
                {
                    Net.sv.write.PacketID(Message.Type.EntityDestroy);
                    Net.sv.write.UInt32(selectedEntity.net.ID);
                    Net.sv.write.UInt8(0);
                    Net.sv.write.Send(new SendInfo(selectedEntity.net.group.subscribers));
                }​

To this:

                NetWrite netWrite = Net.sv.StartWrite();
                if (netWrite != null)
                {
                    netWrite.PacketID(Message.Type.EntityDestroy);
                    netWrite.UInt32(selectedEntity.net.ID);
                    netWrite.UInt8(0);
                    netWrite.Send(new SendInfo(selectedEntity.net.group.subscribers));
                }  

Line 584-590 - Change:

                if (Net.sv.write.Start())
                {
                    Net.sv.write.PacketID(Message.Type.EntityDestroy);
                    Net.sv.write.UInt32(selectedEntity.net.ID);
                    Net.sv.write.UInt8(0);
                    Net.sv.write.Send(new SendInfo(selectedEntity.net.group.subscribers));
                }

To this:

                NetWrite netWrite = Net.sv.StartWrite();
                if (netWrite != null)
                {
                    netWrite.PacketID(Message.Type.EntityDestroy);
                    netWrite.UInt32(selectedEntity.net.ID);
                    netWrite.UInt8(0);
                    netWrite.Send(new SendInfo(selectedEntity.net.group.subscribers));
                }
yay that worked, thanks
👍
Locked automatically