mirror of
https://gitea.ibatv.xyz/LegacyConsoleArchive/MCLCE-MinecraftConsoles.git
synced 2026-12-02 00:21:34 +00:00
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:
1 parent
a9be52c41a
commit
087b7e7abf
1373 files changed
+19449
-19903
No files matched your search
@@ -9,12 +9,12 @@ DaylightDetectorTileEntity::DaylightDetectorTileEntity()
|
||||
|
||||
void DaylightDetectorTileEntity::tick()
|
||||
{
|
||||
if (level != nullptr && !level->isClientSide && (level->getGameTime() % SharedConstants::TICKS_PER_SECOND) == 0)
|
||||
if (level != NULL && !level->isClientSide && (level->getGameTime() % SharedConstants::TICKS_PER_SECOND) == 0)
|
||||
{
|
||||
tile = getTile();
|
||||
if (tile != nullptr && dynamic_cast<DaylightDetectorTile *>(tile) != nullptr)
|
||||
if (tile != NULL && dynamic_cast<DaylightDetectorTile *>(tile) != NULL)
|
||||
{
|
||||
static_cast<DaylightDetectorTile *>(tile)->updateSignalStrength(level, x, y, z);
|
||||
((DaylightDetectorTile *) tile)->updateSignalStrength(level, x, y, z);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ void DaylightDetectorTileEntity::tick()
|
||||
// 4J Added
|
||||
shared_ptr<TileEntity> DaylightDetectorTileEntity::clone()
|
||||
{
|
||||
shared_ptr<DaylightDetectorTileEntity> result = std::make_shared<DaylightDetectorTileEntity>();
|
||||
shared_ptr<DaylightDetectorTileEntity> result = shared_ptr<DaylightDetectorTileEntity>( new DaylightDetectorTileEntity() );
|
||||
TileEntity::clone(result);
|
||||
|
||||
return result;
|
||||
|
||||
Reference in new issue
Block a user