mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +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();
|
$this->clearCustomName();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->hasCompoundTag()){
|
if(!$this->hasCompoundTag()){
|
||||||
$tag = new CompoundTag("", []);
|
$tag = new CompoundTag("", []);
|
||||||
}else{
|
}else{
|
||||||
$tag = $this->getNamedTag();
|
$tag = $this->getNamedTag();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user