1.17-pre1

This commit is contained in:
gnembon committed 2021-05-27 15:01:07 -03:00
1 parent e2dfbc5bdd
commit f64cf67e41
8 files changed
+21 -15

No files matched your search

@@ -17,7 +17,6 @@ import net.minecraft.text.TranslatableText;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.ServerTask;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.network.ServerPlayerInteractionManager;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.UserCache;
import net.minecraft.util.registry.RegistryKey;
@@ -26,6 +25,8 @@ import net.minecraft.world.World;
import carpet.fakes.ServerPlayerEntityInterface;
import carpet.utils.Messenger;
import java.util.concurrent.atomic.AtomicReference;
@SuppressWarnings("EntityConstructor")
public class EntityPlayerMPFake extends ServerPlayerEntity
{
@@ -55,7 +56,9 @@ public class EntityPlayerMPFake extends ServerPlayerEntity
}
if (gameprofile.getProperties().containsKey("textures"))
{
gameprofile = SkullBlockEntity.loadProperties(gameprofile);
AtomicReference<GameProfile> result = new AtomicReference<>();
SkullBlockEntity.loadProperties(gameprofile, result::set);
gameprofile = result.get();
}
EntityPlayerMPFake instance = new EntityPlayerMPFake(server, worldIn, gameprofile, false);
instance.fixStartingPosition = () -> instance.refreshPositionAndAngles(d0, d1, d2, (float) yaw, (float) pitch);