This commit is contained in:
Shoghi Cervantes 2015-01-03 03:43:41 +01:00
parent d207a5daea
commit 4039895d3c
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -111,7 +111,7 @@ class FallingSand extends Entity{
if($this->onGround){
$this->kill();
$block = $this->level->getBlock($pos);
if(!$block->isFullBlock){
if($block->getId() > 0 and !$block->isSolid()){
$this->getLevel()->dropItem($this, ItemItem::get($this->getBlock(), $this->getDamage(), 1));
}else{
$this->server->getPluginManager()->callEvent($ev = new EntityBlockChangeEvent($this, $block, Block::get($this->getBlock(), $this->getDamage())));