MinecraftConsoles/Minecraft.Client/User.cpp
Riley M. c0da06e4ee
major: Switch to forward slashes(+more) to fix compilation on Linux (#1403)
Notably also adds some metadata files for NixOS 

* add support for linux clang cross compiles

* add linux clang instructions

* un-capitalize Mob.horse.*

* update the description in flake.nix

---------

Co-authored-by: Loki <lokirautio@gmail.com>
2026-04-14 16:47:37 -05:00

46 lines
1.4 KiB
C++

#include "stdafx.h"
#include "User.h"
#include "../Minecraft.World/net.minecraft.world.level.tile.h"
vector<Tile *> User::allowedTiles;
void User::staticCtor()
{
allowedTiles.push_back(Tile::stone);
allowedTiles.push_back(Tile::cobblestone);
allowedTiles.push_back(Tile::redBrick);
allowedTiles.push_back(Tile::dirt);
allowedTiles.push_back(Tile::wood);
allowedTiles.push_back(Tile::treeTrunk);
allowedTiles.push_back(Tile::leaves);
allowedTiles.push_back(Tile::torch);
allowedTiles.push_back(Tile::stoneSlabHalf);
allowedTiles.push_back(Tile::glass);
allowedTiles.push_back(Tile::mossyCobblestone);
allowedTiles.push_back(Tile::sapling);
allowedTiles.push_back(Tile::flower);
allowedTiles.push_back(Tile::rose);
allowedTiles.push_back(Tile::mushroom_brown);
allowedTiles.push_back(Tile::mushroom_red);
allowedTiles.push_back(Tile::sand);
allowedTiles.push_back(Tile::gravel);
allowedTiles.push_back(Tile::sponge);
allowedTiles.push_back(Tile::wool);
allowedTiles.push_back(Tile::coalOre);
allowedTiles.push_back(Tile::ironOre);
allowedTiles.push_back(Tile::goldOre);
allowedTiles.push_back(Tile::ironBlock);
allowedTiles.push_back(Tile::goldBlock);
allowedTiles.push_back(Tile::bookshelf);
allowedTiles.push_back(Tile::tnt);
allowedTiles.push_back(Tile::obsidian);
}
User::User(const wstring& name, const wstring& sessionId)
{
this->name = name;
this->sessionId = sessionId;
}