Changed how creator tag works on signs

This commit is contained in:
Shoghi Cervantes
2015-05-28 16:44:31 +02:00
parent 1833da01fe
commit a77d82ac81
3 changed files with 4 additions and 4 deletions

View File

@@ -2629,7 +2629,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
TextFormat::clean($nbt["Text1"], $this->removeFormat), TextFormat::clean($nbt["Text2"], $this->removeFormat), TextFormat::clean($nbt["Text3"], $this->removeFormat), TextFormat::clean($nbt["Text4"], $this->removeFormat)
]);
if(!isset($t->namedtag->Creator) or $t->namedtag["Creator"] !== $this->username){
if(!isset($t->namedtag->Creator) or $t->namedtag["Creator"] !== $this->getUniqueId()){
$ev->setCancelled(true);
}