mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-06 20:37:28 +00:00
refactor: unglob std::shared_ptr
This commit is contained in:
@@ -174,7 +174,7 @@ bool DiodeTile::TestUse()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool DiodeTile::use(Level *level, int x, int y, int z, shared_ptr<Player> player, int clickedFace, float clickX, float clickY, float clickZ, bool soundOnly/*=false*/) // 4J added soundOnly param
|
||||
bool DiodeTile::use(Level *level, int x, int y, int z, std::shared_ptr<Player> player, int clickedFace, float clickX, float clickY, float clickZ, bool soundOnly/*=false*/) // 4J added soundOnly param
|
||||
{
|
||||
if( soundOnly) return false;
|
||||
|
||||
@@ -191,7 +191,7 @@ bool DiodeTile::isSignalSource()
|
||||
return true;
|
||||
}
|
||||
|
||||
void DiodeTile::setPlacedBy(Level *level, int x, int y, int z, shared_ptr<Mob> by)
|
||||
void DiodeTile::setPlacedBy(Level *level, int x, int y, int z, std::shared_ptr<Mob> by)
|
||||
{
|
||||
int dir = (((Mth::floor(by->yRot * 4 / (360) + 0.5)) & 3) + 2) % 4;
|
||||
level->setData(x, y, z, dir);
|
||||
|
||||
Reference in New Issue
Block a user