mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixing
This commit is contained in:
parent
0261a176be
commit
df75cf941a
6 changed files with 23 additions and 21 deletions
|
|
@ -92,12 +92,12 @@ class ChatAPI{
|
|||
}
|
||||
}
|
||||
$mes = implode(" ", $params);
|
||||
$output .= "You're whispering to ".$target." ".$mes."\n";
|
||||
$output .= "You're whispering to ".$target.": ".$mes."\n";
|
||||
if($target !== "Console" and $target !== "Rcon"){
|
||||
$this->sendTo(false, $sender." whispers to you: ".$mes, $target);
|
||||
}
|
||||
if($target === "Console" or $sender === "Console"){
|
||||
console("[INFO] ".$sender." whispers to ".$target." : ".$mes);
|
||||
console("[INFO] ".$sender." whispers to ".$target.": ".$mes);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,9 +86,13 @@ define("DIAMOND_CHESTPLATE", 311);
|
|||
define("DIAMOND_LEGGINGS", 312);
|
||||
define("DIAMOND_BOOTS", 313);
|
||||
define("GOLD_HELMET", 314);
|
||||
define("GOLDEN_HELMET", 314);
|
||||
define("GOLD_CHESTPLATE", 315);
|
||||
define("GOLDEN_CHESTPLATE", 315);
|
||||
define("GOLD_LEGGINGS", 316);
|
||||
define("GOLDEN_LEGGINGS", 316);
|
||||
define("GOLD_BOOTS", 317);
|
||||
define("GOLDEN_BOOTS", 317);
|
||||
define("FLINT", 318);
|
||||
define("RAW_PORKCHOP", 319);
|
||||
define("COOKED_PORKCHOP", 320);
|
||||
|
|
@ -133,6 +137,7 @@ define("MELON", 360);
|
|||
define("MELON_SLICE", 360);
|
||||
define("PUMPKIN_SEEDS", 361);
|
||||
define("MELON_SEEDS", 362);
|
||||
define("RAW_BEEF", 363);
|
||||
define("BEEF", 363);
|
||||
define("STEAK", 364);
|
||||
define("COOKED_BEEF", 364);
|
||||
|
|
|
|||
|
|
@ -122,11 +122,11 @@ class CraftingRecipes{
|
|||
"DIAMOND:?x3,STICK:?x2=>DIAMOND_PICKAXE:0x1",
|
||||
"DIAMOND:?x1,STICK:?x2=>DIAMOND_SHOVEL:0x1",
|
||||
"DIAMOND:?x2,STICK:?x1=>DIAMOND_SWORD:0x1",
|
||||
"GOLD_INGOT:?x3,STICK:?x2=>GOLD_AXE:0x1",
|
||||
"GOLD_INGOT:?x2,STICK:?x2=>GOLD_HOE:0x1",
|
||||
"GOLD_INGOT:?x3,STICK:?x2=>GOLD_PICKAXE:0x1",
|
||||
"GOLD_INGOT:?x1,STICK:?x2=>GOLD_SHOVEL:0x1",
|
||||
"GOLD_INGOT:?x2,STICK:?x1=>GOLD_SWORD:0x1",
|
||||
"GOLD_INGOT:?x3,STICK:?x2=>GOLDEN_AXE:0x1",
|
||||
"GOLD_INGOT:?x2,STICK:?x2=>GOLDEN_HOE:0x1",
|
||||
"GOLD_INGOT:?x3,STICK:?x2=>GOLDEN_PICKAXE:0x1",
|
||||
"GOLD_INGOT:?x1,STICK:?x2=>GOLDEN_SHOVEL:0x1",
|
||||
"GOLD_INGOT:?x2,STICK:?x1=>GOLDEN_SWORD:0x1",
|
||||
"IRON_INGOT:?x3,STICK:?x2=>IRON_AXE:0x1",
|
||||
"IRON_INGOT:?x2,STICK:?x2=>IRON_HOE:0x1",
|
||||
"IRON_INGOT:?x3,STICK:?x2=>IRON_PICKAXE:0x1",
|
||||
|
|
@ -155,10 +155,10 @@ class CraftingRecipes{
|
|||
"DIAMOND:?x8=>DIAMOND_CHESTPLATE:0x1",
|
||||
"DIAMOND:?x5=>DIAMOND_HELMET:0x1",
|
||||
"DIAMOND:?x7=>DIAMOND_LEGGINGS:0x1",
|
||||
"GOLD_INGOT:?x4=>GOLD_BOOTS:0x1",
|
||||
"GOLD_INGOT:?x8=>GOLD_CHESTPLATE:0x1",
|
||||
"GOLD_INGOT:?x5=>GOLD_HELMET:0x1",
|
||||
"GOLD_INGOT:?x7=>GOLD_LEGGINGS:0x1",
|
||||
"GOLD_INGOT:?x4=>GOLDEN_BOOTS:0x1",
|
||||
"GOLD_INGOT:?x8=>GOLDEN_CHESTPLATE:0x1",
|
||||
"GOLD_INGOT:?x5=>GOLDEN_HELMET:0x1",
|
||||
"GOLD_INGOT:?x7=>GOLDEN_LEGGINGS:0x1",
|
||||
"IRON_INGOT:?x4=>IRON_BOOTS:0x1",
|
||||
"IRON_INGOT:?x8=>IRON_CHESTPLATE:0x1",
|
||||
"IRON_INGOT:?x5=>IRON_HELMET:0x1",
|
||||
|
|
|
|||
|
|
@ -30,16 +30,12 @@ class SmeltingData{
|
|||
NETHERRACK => array(NETHER_BRICK, 0),
|
||||
RAW_PORKCHOP => array(COOKED_PORKCHOP, 0),
|
||||
CLAY => array(BRICK, 0),
|
||||
//RAW_FISH => array(COOKED_FISH, 0),
|
||||
CACTUS => array(DYE, 2),
|
||||
RED_MUSHROOM => array(DYE, 1),
|
||||
RAW_BEEF => array(STEAK, 0),
|
||||
RAW_CHICKEN => array(COOKED_CHICKEN, 0),
|
||||
RED_MUSHROOM => array(DYE, 1),
|
||||
POTATO => array(BAKED_POTATO, 0),
|
||||
BEETROOT => array(DYE, 1),
|
||||
COAL => array(DYE, 0),
|
||||
STONE_BRICKS => array(STONE_BRICKS, 2),
|
||||
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -964,10 +964,10 @@ class Entity extends Position{
|
|||
CHAIN_CHESTPLATE => 5,
|
||||
CHAIN_LEGGINGS => 4,
|
||||
CHAIN_BOOTS => 1,
|
||||
GOLD_HELMET => 1,
|
||||
GOLD_CHESTPLATE => 5,
|
||||
GOLD_LEGGINGS => 3,
|
||||
GOLD_BOOTS => 1,
|
||||
GOLDEN_HELMET => 1,
|
||||
GOLDEN_CHESTPLATE => 5,
|
||||
GOLDEN_LEGGINGS => 3,
|
||||
GOLDEN_BOOTS => 1,
|
||||
IRON_HELMET => 2,
|
||||
IRON_CHESTPLATE => 6,
|
||||
IRON_LEGGINGS => 5,
|
||||
|
|
|
|||
|
|
@ -70,13 +70,13 @@ class SmallTreeObject extends TreeObject{
|
|||
|
||||
// Now build the tree (from the top down)
|
||||
$leaflevel = 0;
|
||||
for( $yy = ($this->trunkHeight + 1); $yy >= 0; --$yy )
|
||||
for( $yy = ($this->trunkHeight); $yy >= 0; --$yy )
|
||||
{
|
||||
if( $leaflevel < self::$leavesHeight )
|
||||
{
|
||||
// The size is a slight variation on the trunkheight
|
||||
$radius = self::$leafRadii[ $leaflevel ] + $leafPre;
|
||||
$bRadius = 3;
|
||||
$bRadius = 2;
|
||||
for( $xx = -$bRadius; $xx <= $bRadius; ++ $xx )
|
||||
{
|
||||
for( $zz = -$bRadius; $zz <= $bRadius; ++ $zz )
|
||||
|
|
@ -99,6 +99,7 @@ class SmallTreeObject extends TreeObject{
|
|||
$trunkpos = new Vector3( $pos->x, $pos->y + $yy, $pos->z );
|
||||
$level->setBlockRaw($trunkpos, new WoodBlock( $this->type ) );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue