File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11package dev .luxotick ;
22
33import net .fabricmc .api .ModInitializer ;
4+ import net .fabricmc .fabric .api .client .event .lifecycle .v1 .ClientTickEvents ;
45import net .fabricmc .fabric .api .client .message .v1 .ClientReceiveMessageEvents ;
56import net .minecraft .client .MinecraftClient ;
67import net .minecraft .client .network .PlayerListEntry ;
@@ -30,6 +31,12 @@ public void onInitialize() {
3031 }
3132 );
3233
34+ ClientTickEvents .END_CLIENT_TICK .register (client -> {
35+ if (client .player != null && client .player .isDead ()) {
36+ client .execute (() -> client .player .requestRespawn ());
37+ }
38+ });
39+
3340 new Thread (() -> {
3441 while (true ) {
3542 MinecraftClient client = MinecraftClient .getInstance ();
Original file line number Diff line number Diff line change 11{
22 "schemaVersion" : 1 ,
3- "id" : " _2blc " ,
3+ "id" : " h2blc " ,
44 "version" : " ${version}" ,
55 "name" : " _2blc" ,
66 "description" : " This is an example description! Tell everyone what your mod is about!" ,
You can’t perform that action at this time.
0 commit comments