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