mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Block Names
This commit is contained in:
parent
5a054a8ab4
commit
888e84dd69
5 changed files with 124 additions and 101 deletions
|
|
@ -49,6 +49,10 @@ abstract class Block{
|
|||
$this->shortname = strtolower(str_replace(" ", "_", $name));
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
final public function getID(){
|
||||
return $id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ define("MOSS_STONE", 48);
|
|||
define("MOSSY_STONE", 48);
|
||||
define("OBSIDIAN", 49);
|
||||
define("TORCH", 50);
|
||||
define("FiRE", 51);
|
||||
define("FIRE", 51);
|
||||
|
||||
define("WOOD_STAIRS", 53);
|
||||
define("CHEST", 54);
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ class Entity extends stdClass{
|
|||
switch($this->class){
|
||||
case ENTITY_PLAYER:
|
||||
$player->dataPacket(MC_ADD_PLAYER, array(
|
||||
"clientID" => $this->player->clientID,
|
||||
"clientID" => 0,/*$this->player->clientID,*/
|
||||
"username" => $this->player->username,
|
||||
"eid" => $this->eid,
|
||||
"x" => $this->x,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue