* Fixed boats falling and a TP glitch #266 * Replaced every C-style cast with C++ ones * Replaced every C-style cast with C++ ones * Fixed boats falling and a TP glitch #266 * Updated NULL to nullptr and fixing some type issues * Modernized and fixed a few bugs - Replaced most instances of `NULL` with `nullptr`. - Replaced most `shared_ptr(new ...)` with `make_shared`. - Removed the `nullptr` macro as it was interfering with the actual nullptr keyword in some instances. * Fixing more conflicts * Replace int loops with size_t and start work on overrides
25 lines
733 B
C++
25 lines
733 B
C++
#include "stdafx.h"
|
|
#include "MushroomIslandBiome.h"
|
|
#include "BiomeDecorator.h"
|
|
#include "net.minecraft.world.entity.animal.h"
|
|
#include "net.minecraft.world.level.tile.h"
|
|
|
|
MushroomIslandBiome::MushroomIslandBiome(int id) : Biome(id)
|
|
{
|
|
decorator->treeCount = -100;
|
|
decorator->flowerCount = -100;
|
|
decorator->grassCount = -100;
|
|
|
|
decorator->mushroomCount = 1;
|
|
decorator->hugeMushrooms = 1;
|
|
|
|
topMaterial = static_cast<byte>(Tile::mycel_Id);
|
|
|
|
enemies.clear();
|
|
friendlies.clear();
|
|
friendlies_chicken.clear(); // 4J added
|
|
friendlies_wolf.clear(); // 4J added
|
|
waterFriendlies.clear();
|
|
|
|
friendlies_mushroomcow.push_back(new MobSpawnerData(eTYPE_MUSHROOMCOW, 8, 4, 8)); // 4J moved to own category
|
|
} |