mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 22:59:59 +00:00
Changed how creator tag works on signs
This commit is contained in:
parent
1833da01fe
commit
a77d82ac81
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user