Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
This commit is contained in:
@@ -26,7 +26,7 @@ void SignTile::updateDefaultShape()
|
||||
|
||||
AABB *SignTile::getAABB(Level *level, int x, int y, int z)
|
||||
{
|
||||
return nullptr;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
AABB *SignTile::getTileAABB(Level *level, int x, int y, int z)
|
||||
@@ -79,7 +79,7 @@ shared_ptr<TileEntity> SignTile::newTileEntity(Level *level)
|
||||
{
|
||||
//try {
|
||||
// 4J Stu - For some reason the newInstance wasn't working right, but doing it like the other TileEntities is fine
|
||||
return std::make_shared<SignTileEntity>();
|
||||
return shared_ptr<TileEntity>( new SignTileEntity() );
|
||||
//return dynamic_pointer_cast<TileEntity>( clas->newInstance() );
|
||||
//} catch (Exception e) {
|
||||
// TODO 4J Stu - Exception handling
|
||||
|
||||
Reference in New Issue
Block a user