Better auto-save, less resource and disk usage

This commit is contained in:
Shoghi Cervantes
2013-06-04 18:45:30 +02:00
parent f12620f376
commit 06a0f169dd
4 changed files with 15 additions and 4 deletions

View File

@ -35,8 +35,10 @@ class WoodBlock extends SolidBlock{
WoodBlock::OAK => "Oak Wood",
WoodBlock::SPRUCE => "Spruce Wood",
WoodBlock::BIRCH => "Birch Wood",
3 => "",
);
$this->name = $names[$this->meta & 0x03];
$this->meta &= 0x03;
$this->name = $names[$this->meta];
}
}