Implemented Explosion and PrimedTNT, closes #2139

This commit is contained in:
Shoghi Cervantes
2014-10-07 17:46:01 +02:00
parent 5fb205493a
commit 582c165479
11 changed files with 237 additions and 52 deletions

View File

@ -281,10 +281,10 @@ abstract class Entity extends Position implements Metadatable{
foreach($player as $p){
if($p === $this){
/** @var Player $p */
$pk = new SetEntityDataPacket();
$pk->eid = 0;
$pk->metadata = $this->getData();
$p->dataPacket($pk);
$pk2 = new SetEntityDataPacket();
$pk2->eid = 0;
$pk2->metadata = $this->getData();
$p->dataPacket($pk2);
}else{
$p->dataPacket($pk);
}