mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-29 10:24:46 +00:00
TU19: merge Minecraft.World/Network
This commit is contained in:
@@ -22,10 +22,10 @@ AddGlobalEntityPacket::AddGlobalEntityPacket(std::shared_ptr<Entity> e) {
|
||||
x = Mth::floor(e->x * 32);
|
||||
y = Mth::floor(e->y * 32);
|
||||
z = Mth::floor(e->z * 32);
|
||||
if (std::dynamic_pointer_cast<LightningBolt>(e) != NULL) {
|
||||
this->type = LIGHTNING;
|
||||
if (e->instanceof(eTYPE_LIGHTNINGBOLT)) {
|
||||
type = LIGHTNING;
|
||||
} else {
|
||||
this->type = 0;
|
||||
type = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user