Disallow further modification of Signs by its creator after load/unload

This commit is contained in:
Shoghi Cervantes
2014-10-28 11:05:32 +01:00
parent 350cee3d41
commit b9f1812f61
2 changed files with 9 additions and 4 deletions

View File

@ -46,6 +46,11 @@ class Sign extends Spawnable{
parent::__construct($chunk, $nbt);
}
public function saveNBT(){
parent::saveNBT();
unset($this->namedtag->Creator);
}
public function setText($line1 = "", $line2 = "", $line3 = "", $line4 = ""){
$this->namedtag->Text1 = new String("Text1", $line1);
$this->namedtag->Text2 = new String("Text2", $line2);