mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Merge pull request #3495 from 0929hitoshi/mcpe-0.12
Changing the return value of getName
This commit is contained in:
commit
86c1198648
@ -29,7 +29,7 @@ class EnchantTable extends Spawnable implements Nameable{
|
|||||||
|
|
||||||
|
|
||||||
public function getName(){
|
public function getName(){
|
||||||
return isset($this->namedtag->CustomName) ? $this->namedtag->CustomName->getValue() : "Chest";
|
return isset($this->namedtag->CustomName) ? $this->namedtag->CustomName->getValue() : "Enchanting Table";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasName(){
|
public function hasName(){
|
||||||
|
@ -71,7 +71,7 @@ class Furnace extends Tile implements InventoryHolder, Container, Nameable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getName(){
|
public function getName(){
|
||||||
return isset($this->namedtag->CustomName) ? $this->namedtag->CustomName->getValue() : "Chest";
|
return isset($this->namedtag->CustomName) ? $this->namedtag->CustomName->getValue() : "Furnace";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasName(){
|
public function hasName(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user