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);
}

View File

@ -74,8 +74,8 @@ namespace pocketmine {
const VERSION = "1.5dev";
const API_VERSION = "1.12.0";
const CODENAME = "活発(Kappatsu)フグ(Fugu)";
const MINECRAFT_VERSION = "v0.11.0 alpha build 13";
const MINECRAFT_VERSION_NETWORK = "0.11.0.13";
const MINECRAFT_VERSION = "v0.11.0 alpha";
const MINECRAFT_VERSION_NETWORK = "0.11.0";
/*
* Startup code. Do not look at it, it may harm you.

View File

@ -1621,7 +1621,7 @@ class Level implements ChunkManager, Metadatable{
"Text4" => new String("Text4", "")
]));
if($player instanceof Player){
$tile->namedtag->Creator = new String("Creator", $player->getName());
$tile->namedtag->Creator = new String("Creator", $player->getUniqueId());
}
}
$item->setCount($item->getCount() - 1);