浏览代码

fixed new security model

Nicolas Cannasse 7 年之前
父节点
当前提交
5cd54183b2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      samples/Network.hx

+ 2 - 2
samples/Network.hx

@@ -17,8 +17,8 @@ class Cursor implements hxbit.NetworkSerializable {
 		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 ) {