mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-19 07:38:07 +00:00
fix bad std::string replacements
This commit is contained in:
@@ -758,19 +758,19 @@ int PotionBrewing::valueOf(int brew, int p1, int p2, int p3, int p4, int p5) {
|
||||
}
|
||||
|
||||
std::wstring PotionBrewing::toString(int brew) {
|
||||
std::wstring std::string;
|
||||
std::wstring string;
|
||||
|
||||
int bit = NUM_BITS - 1;
|
||||
while (bit >= 0) {
|
||||
if ((brew & (1 << bit)) != 0) {
|
||||
std::string.append(L"O");
|
||||
string.append(L"O");
|
||||
} else {
|
||||
std::string.append(L"x");
|
||||
string.append(L"x");
|
||||
}
|
||||
bit--;
|
||||
}
|
||||
|
||||
return std::string;
|
||||
return string;
|
||||
}
|
||||
|
||||
// void main(String[] args)
|
||||
|
||||
@@ -173,8 +173,8 @@ public:
|
||||
return (ListTag<Tag>*)tags[name];
|
||||
}
|
||||
|
||||
bool getBoolean(const std::wstring& std::string) {
|
||||
return getByte(std::string) != 0;
|
||||
bool getBoolean(const std::wstring& string) {
|
||||
return getByte(string) != 0;
|
||||
}
|
||||
|
||||
void remove(const std::wstring& name) {
|
||||
|
||||
@@ -1604,7 +1604,7 @@ void Level::playStreamingMusic(const std::wstring& name, int x, int y, int z) {
|
||||
}
|
||||
|
||||
void Level::playMusic(double x, double y, double z,
|
||||
const std::wstring& std::string, float volume) {}
|
||||
const std::wstring& string, float volume) {}
|
||||
|
||||
// 4J removed -
|
||||
/*
|
||||
|
||||
@@ -341,7 +341,7 @@ public:
|
||||
|
||||
void playStreamingMusic(const std::wstring& name, int x, int y, int z);
|
||||
void playMusic(double x, double y, double z,
|
||||
const std::wstring& std::string, float volume);
|
||||
const std::wstring& string, float volume);
|
||||
// 4J removed - void addParticle(const std::wstring& id, double x, double y,
|
||||
// double z, double xd, double yd, double zd);
|
||||
void addParticle(ePARTICLE_TYPE id, double x, double y, double z, double xd,
|
||||
|
||||
Reference in New Issue
Block a user