mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-26 19:13:50 +00:00
blockstate, more block events, command preprocess event.
This commit is contained in:
parent
21b5accc69
commit
18a673bd46
34 changed files with 1359 additions and 58 deletions
|
|
@ -5,6 +5,10 @@
|
|||
#include "net.minecraft.world.h"
|
||||
#include "net.minecraft.h"
|
||||
#include "CocoaTile.h"
|
||||
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
|
||||
#include "..\Minecraft.Server\FourKitBridge.h"
|
||||
#include "Dimension.h"
|
||||
#endif
|
||||
|
||||
const wstring CocoaTile::TEXTURE_AGES[] = { L"cocoa_0", L"cocoa_1", L"cocoa_2"};
|
||||
|
||||
|
|
@ -40,6 +44,10 @@ void CocoaTile::tick(Level *level, int x, int y, int z, Random *random)
|
|||
int age = getAge(data);
|
||||
if (age < 2)
|
||||
{
|
||||
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
|
||||
if (FourKitBridge::FireBlockGrow(level->dimension->id, x, y, z, level->getTile(x, y, z), ((age + 1) << 2) | getDirection(data)))
|
||||
return;
|
||||
#endif
|
||||
age++;
|
||||
level->setData(x, y, z, (age << 2) | (getDirection(data)), Tile::UPDATE_CLIENTS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue