From a1762ee303fa06718cfe0400b4b15b281814b3a1 Mon Sep 17 00:00:00 2001 From: Blue Date: Fri, 3 Sep 2021 00:04:40 +0200 Subject: [PATCH] Add invincible setter/getter Former-commit-id: ea11a49559d5cc338aa9adb6a92a0282c781184e --- src/bindings/Player.cpp | 2 ++ src/cpp-sdk | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bindings/Player.cpp b/src/bindings/Player.cpp index 022e83f8..27f01895 100644 --- a/src/bindings/Player.cpp +++ b/src/bindings/Player.cpp @@ -440,6 +440,8 @@ extern V8Class v8Player("Player", v8Entity, nullptr, [](v8::Local(isolate, tpl, "moveSpeed"); + V8::SetAccessor(isolate, tpl, "invincible"); + V8::SetMethod(isolate, tpl, "spawn", &Spawn); V8::SetMethod(isolate, tpl, "setDateTime", &SetDateTime); V8::SetMethod(isolate, tpl, "setWeather", &SetWeather); diff --git a/src/cpp-sdk b/src/cpp-sdk index 115de7e4..0d66a538 160000 --- a/src/cpp-sdk +++ b/src/cpp-sdk @@ -1 +1 @@ -Subproject commit 115de7e449f9ab33833eeac2c6ec46b80d647004 +Subproject commit 0d66a538b92b1d351d6a37dcad3c08bda8ad3236