End crystal placement (#5112)
* End crystal placement * End crystal placement - fixed error and added some comments * Removed unused includes * Update src/Items/ItemEndCrystal.h Co-authored-by: Alexander Harkness <me@bearbin.net> * End Crystal placement, early-return pattern enforcement * End crystal Item finish? * Small changes Fixed a crashbug in ender crystal destruction. According to vanilla 1.16 testing, end crystals don't place if any entity intersects the box, not just other end crystals. Check return value of SpawnEnderCrystal. Add header in SeeMake. Cafe Stile Redux. * The stylechecker relies on CMakeLists * There is another Co-authored-by: Alexander Harkness <me@bearbin.net> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "ItemDye.h"
|
||||
#include "ItemEmptyMap.h"
|
||||
#include "ItemEnchantingTable.h"
|
||||
#include "ItemEndCrystal.h"
|
||||
#include "ItemEyeOfEnder.h"
|
||||
#include "ItemFishingRod.h"
|
||||
#include "ItemFood.h"
|
||||
@@ -137,6 +138,7 @@ cItemHandler * cItemHandler::CreateItemHandler(int a_ItemType)
|
||||
case E_ITEM_EGG: return new cItemEggHandler();
|
||||
case E_ITEM_EMPTY_MAP: return new cItemEmptyMapHandler();
|
||||
case E_ITEM_ENDER_PEARL: return new cItemEnderPearlHandler();
|
||||
case E_ITEM_END_CRYSTAL: return new cItemEndCrystalHandler(a_ItemType);
|
||||
case E_ITEM_EYE_OF_ENDER: return new cItemEyeOfEnderHandler();
|
||||
case E_ITEM_FIRE_CHARGE: return new cItemLighterHandler(a_ItemType);
|
||||
case E_ITEM_FIREWORK_ROCKET: return new cItemFireworkHandler();
|
||||
|
||||
Reference in New Issue
Block a user