diff options
| author | qwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com> | 2026-03-05 17:17:45 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-05 17:17:45 -0600 |
| commit | 0666959d312dc74903f55d1071488a90239330f1 (patch) | |
| tree | 5c6886f7ec65a7828bc6e34a469514e418bcf78b /Minecraft.World/ExplodePacket.cpp | |
| parent | 9370cbc7d878df1615d8ce76bc459e8b414d0f19 (diff) | |
| parent | eed770b121aa4ce38f002db042d0137c24c6d344 (diff) | |
Merge branch 'smartcmd:main' into main
Diffstat (limited to 'Minecraft.World/ExplodePacket.cpp')
| -rw-r--r-- | Minecraft.World/ExplodePacket.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Minecraft.World/ExplodePacket.cpp b/Minecraft.World/ExplodePacket.cpp index aec5b261..30d09e46 100644 --- a/Minecraft.World/ExplodePacket.cpp +++ b/Minecraft.World/ExplodePacket.cpp @@ -27,16 +27,12 @@ ExplodePacket::ExplodePacket(double x, double y, double z, float r, unordered_se this->r = r; m_bKnockbackOnly = knockBackOnly; - if(toBlow != NULL) + if(toBlow != nullptr) { this->toBlow.assign(toBlow->begin(),toBlow->end()); - //for( AUTO_VAR(it, toBlow->begin()); it != toBlow->end(); it++ ) - //{ - // this->toBlow.push_back(*it); - //} } - if (knockback != NULL) + if (knockback != nullptr) { knockbackX = (float) knockback->x; knockbackY = (float) knockback->y; @@ -89,13 +85,8 @@ void ExplodePacket::write(DataOutputStream *dos) //throws IOException int yp = (int)y; int zp = (int)z; - //(Myset::const_iterator it = c1.begin(); - //it != c1.end(); ++it) - - for( AUTO_VAR(it, toBlow.begin()); it != toBlow.end(); it++ ) + for ( const TilePos& tp : toBlow ) { - TilePos tp = *it; - int xx = tp.x-xp; int yy = tp.y-yp; int zz = tp.z-zp; |
