mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
macOS Support & AppPlatform Cleanup (#57)
* macOS Support & Cleanup * Fix malformed comments in build-wasm.bat * Emscripten Fixes * * Add shebang to the grabsounds.py script Since it was changed from rw- to rwx, I'll add the shebang so that it actually runs properly. * * Re-add the patch_data and readme files. * * Remove sound data. * Fix some more things. * Think it's ready to pull now... --------- Co-authored-by: BrentDaMage <BrentDaMage@users.noreply.github.com> Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
This commit is contained in:
@@ -82,11 +82,11 @@ bool TreeFeature::place(Level* level, Random* random, int x, int y, int z)
|
||||
if (c2 < 0)
|
||||
c3 = -c2;
|
||||
|
||||
int c5 = c3;
|
||||
//int c5 = c3;
|
||||
|
||||
for (int az = z - c1; az <= z + c1; az++, c4++)
|
||||
{
|
||||
if ((abs(ax - x) != c1 || abs(az - z) != c1 || random->nextInt(2) != 0 && diff != 0) && !Tile::solid[level->getTile(ax, i, az)])
|
||||
if ((abs(ax - x) != c1 || abs(az - z) != c1 || (random->nextInt(2) != 0 && diff != 0)) && !Tile::solid[level->getTile(ax, i, az)])
|
||||
{
|
||||
level->setTileNoUpdate(ax, i, az, Tile::leaves->m_ID);
|
||||
}
|
||||
@@ -96,7 +96,7 @@ bool TreeFeature::place(Level* level, Random* random, int x, int y, int z)
|
||||
|
||||
for (int i = 0; i < treeHeight; i++)
|
||||
{
|
||||
int y1 = i + y;
|
||||
//int y1 = i + y;
|
||||
TileID tile = level->getTile(x, y + i, z);
|
||||
if (tile && tile != Tile::leaves->m_ID)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user