The world can now truly be made higher by incrementing cChunk::c_ChunkHeight to 256. !!HOWEVER THIS WILL DESTROY YOUR SAVED WORLD!!
git-svn-id: http://mc-server.googlecode.com/svn/trunk@357 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
fb7c60ec11
commit
f1f762c4fa
@ -7,7 +7,7 @@ function OnBlockPlace( Block, Player )
|
|||||||
local Y = Block.m_PosY
|
local Y = Block.m_PosY
|
||||||
local Z = Block.m_PosZ
|
local Z = Block.m_PosZ
|
||||||
X, Y, Z = AddDirection( X, Y, Z, Block.m_Direction )
|
X, Y, Z = AddDirection( X, Y, Z, Block.m_Direction )
|
||||||
if( Y >= 128 or Y < 0 ) then
|
if( Y >= 256 or Y < 0 ) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
12
settings.ini
12
settings.ini
@ -4,11 +4,14 @@ MaxPlayers=10000
|
|||||||
Description=MCServer - Slightly more custom!
|
Description=MCServer - Slightly more custom!
|
||||||
|
|
||||||
[Worlds]
|
[Worlds]
|
||||||
DefaultWorld=world
|
|
||||||
;World=world_sexy
|
;World=world_sexy
|
||||||
|
DefaultWorld=world
|
||||||
|
|
||||||
[Plugins]
|
[Plugins]
|
||||||
;Squirrel=SquirrelChatLog
|
NewPlugin=Core
|
||||||
|
;NewPlugin=Protect
|
||||||
|
;NewPlugin=MagicCarpet
|
||||||
|
;NewPlugin=ChatLog
|
||||||
|
|
||||||
[HelpPlugin]
|
[HelpPlugin]
|
||||||
ShowPluginNames=1
|
ShowPluginNames=1
|
||||||
@ -16,6 +19,9 @@ ShowPluginNames=1
|
|||||||
[Physics]
|
[Physics]
|
||||||
Water=0
|
Water=0
|
||||||
|
|
||||||
|
[Redstone]
|
||||||
|
SimulateRedstone=0
|
||||||
|
|
||||||
[Monsters]
|
[Monsters]
|
||||||
AnimalsOn=0
|
AnimalsOn=0
|
||||||
AnimalSpawnInterval=10
|
AnimalSpawnInterval=10
|
||||||
@ -24,4 +30,4 @@ Types=Spider,Chicken,Cow,Pig,Sheep,Squid,Enderman,Zombiepigman,Cavespider,Creepe
|
|||||||
[Authentication]
|
[Authentication]
|
||||||
Server=session.minecraft.net
|
Server=session.minecraft.net
|
||||||
Address=/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%
|
Address=/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%
|
||||||
Authenticate=0
|
Authenticate=0
|
@ -1041,7 +1041,7 @@ void cChunk::SendBlockTo( int a_X, int a_Y, int a_Z, cClientHandle* a_Client )
|
|||||||
unsigned int index = MakeIndex( a_X, a_Y, a_Z );
|
unsigned int index = MakeIndex( a_X, a_Y, a_Z );
|
||||||
cPacket_BlockChange BlockChange;
|
cPacket_BlockChange BlockChange;
|
||||||
BlockChange.m_PosX = a_X + m_PosX*c_ChunkWidth;
|
BlockChange.m_PosX = a_X + m_PosX*c_ChunkWidth;
|
||||||
BlockChange.m_PosY = (char)(a_Y + m_PosY*c_ChunkHeight);
|
BlockChange.m_PosY = (unsigned char)(a_Y + m_PosY*c_ChunkHeight);
|
||||||
BlockChange.m_PosZ = a_Z + m_PosZ*c_ChunkWidth;
|
BlockChange.m_PosZ = a_Z + m_PosZ*c_ChunkWidth;
|
||||||
if( index != INDEX_OUT_OF_RANGE )
|
if( index != INDEX_OUT_OF_RANGE )
|
||||||
{
|
{
|
||||||
|
@ -113,7 +113,7 @@ class cChunk
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static const int c_ChunkWidth = 16;
|
static const int c_ChunkWidth = 16;
|
||||||
static const int c_ChunkHeight = 128;
|
static const int c_ChunkHeight = 128; //256;
|
||||||
static const int c_NumBlocks = c_ChunkWidth * c_ChunkHeight * c_ChunkWidth;
|
static const int c_NumBlocks = c_ChunkWidth * c_ChunkHeight * c_ChunkWidth;
|
||||||
static const int c_BlockDataSize = c_NumBlocks * 2 + (c_NumBlocks/2); // 2.5 * numblocks
|
static const int c_BlockDataSize = c_NumBlocks * 2 + (c_NumBlocks/2); // 2.5 * numblocks
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user