mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fix setting custom name erases CompoundTag, fixes #244 ...
... even though this bug was introduced AFTER said issue was reported. Nice work @Muqsit
This commit is contained in:
parent
058468104a
commit
57f3f9b4ed
@ -559,7 +559,7 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
$this->clearCustomName();
|
||||
}
|
||||
|
||||
if($this->hasCompoundTag()){
|
||||
if(!$this->hasCompoundTag()){
|
||||
$tag = new CompoundTag("", []);
|
||||
}else{
|
||||
$tag = $this->getNamedTag();
|
||||
|
Loading…
x
Reference in New Issue
Block a user