Browse Source

fixed new security model

Nicolas Cannasse 7 years ago
parent
commit
5cd54183b2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      samples/Network.hx

+ 2 - 2
samples/Network.hx

@@ -17,8 +17,8 @@ class Cursor implements hxbit.NetworkSerializable {
 		y = 0;
 		y = 0;
 	}
 	}
 
 
-	public function networkGetOwner() {
-		return this;
+	public function networkAllow( op : hxbit.NetworkSerializable.Operation, propId : Int, client : hxbit.NetworkSerializable ) : Bool {
+		return client == this;
 	}
 	}
 
 
 	function set_x( v : Float ) {
 	function set_x( v : Float ) {