Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
godgamer029 committed Aug 15, 2021
1 parent dab323e commit 8b31568
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Horion/Command/Commands/TestCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ void listEnts(C_Entity* ent, bool isValid) {
void showAimedBlockInfo() {
PointingStruct* pointingStruct = g_Data.getClientInstance()->getPointerStruct();
C_Block* block = g_Data.getLocalPlayer()->region->getBlock(pointingStruct->block);
int id = block->toLegacy()->blockId;
auto id = block->toLegacy()->blockId;
char* name = block->toLegacy()->name.getText();
logF("---------------");
logF("Block Name: %s", name);
logF("Block ID: %d", id);
logF("Block ID: %lld", id);
logF("---------------");
}

Expand Down
4 changes: 2 additions & 2 deletions Horion/Module/Modules/CrystalAura.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ void CrystalAura::CPlace(C_GameMode* gm, vec3_t* pos) {
C_Block* block = gm->player->region->getBlock(blockPos);
C_Block* upperBlock = gm->player->region->getBlock(upperBlockPos);
if (block != nullptr) {
int blockId = block->toLegacy()->blockId;
int upperBlockId = upperBlock->toLegacy()->blockId;
auto blockId = block->toLegacy()->blockId;
auto upperBlockId = upperBlock->toLegacy()->blockId;
if ((blockId == 49 || blockId == 7) && upperBlockId == 0 && CanPlaceC(&blockPos)) { //Check for awailable block
if (!ValidPos) {
ValidPos = true;
Expand Down
1 change: 1 addition & 0 deletions Horion/Module/Modules/Fly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ bool Fly::isFlashMode() {
return true;
break;
}
return false;
}

void Fly::onEnable() {
Expand Down
2 changes: 1 addition & 1 deletion Horion/Module/Modules/Fucker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void Fucker::onTick(C_GameMode* gm) {
for (int y = (int)pos->y - range; y < pos->y + range; y++) {
vec3_ti blockPos = vec3_ti(x, y, z);
bool destroy = false;
int id = gm->player->region->getBlock(blockPos)->toLegacy()->blockId;
auto id = gm->player->region->getBlock(blockPos)->toLegacy()->blockId;

if (id == 26 && this->beds) destroy = true; // Beds
if (id == 122 && this->eggs) destroy = true; // Dragon Eggs
Expand Down

1 comment on commit 8b31568

@Intoprelised
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking kinda fresh

Please sign in to comment.