From 16281eb703bc1ec0a3ea638863a47ddf2ae50213 Mon Sep 17 00:00:00 2001 From: GP Garcia Date: Wed, 20 Sep 2023 10:59:49 -0500 Subject: [PATCH] Fixed small thing in P2P tutorial --- docs/tutorials/p2p.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/p2p.md b/docs/tutorials/p2p.md index 748fe0f9..fd0b5c34 100644 --- a/docs/tutorials/p2p.md +++ b/docs/tutorials/p2p.md @@ -126,7 +126,7 @@ Inside that handshake there was a call to the ***_read_P2P_Packet()*** function if PACKET_SIZE > 0: var PACKET: Dictionary = Steam.readP2PPacket(PACKET_SIZE, 0) - if PACKET.empty() or PACKET == null: + if PACKET.is_empty() or PACKET == null: print("WARNING: read an empty packet with non-zero size!") # Get the remote user's ID @@ -300,7 +300,7 @@ To accomplish this, we add a single line of code to our **\_read_P2P_Packet** fu if PACKET_SIZE > 0: var PACKET: Dictionary = Steam.readP2PPacket(PACKET_SIZE, 0) - if PACKET.empty() or PACKET == null: + if PACKET.is_empty() or PACKET == null: print("WARNING: read an empty packet with non-zero size!") # Get the remote user's ID