1.20.2-pre1
This commit is contained in:
1 parent
ffbd1338b0
commit
5a77da26d4
12 files changed
+49
-54
No files matched your search
@@ -5,7 +5,6 @@ import carpet.fakes.ServerPlayerInterface;
|
||||
import carpet.script.EntityEventsGroup;
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.network.protocol.game.ServerboundClientInformationPacket;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
@@ -129,20 +128,4 @@ public abstract class ServerPlayer_scarpetEventMixin extends Player implements S
|
||||
{
|
||||
return isInvalidReference;
|
||||
}
|
||||
|
||||
//getting player language
|
||||
@Unique
|
||||
private String language;
|
||||
|
||||
@Override
|
||||
public String getLanguage()
|
||||
{
|
||||
return this.language;
|
||||
}
|
||||
|
||||
@Inject(method = "updateOptions", at = @At("HEAD"))
|
||||
public void setLanguage(ServerboundClientInformationPacket packet, CallbackInfo ci)
|
||||
{
|
||||
this.language = packet.language();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user