mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-07-15 07:37:03 +00:00
fix: doorplacing + stacksize
now you can place doors on top of topslabs and incresed maxstack size to 64
This commit is contained in:
parent
168fe6b862
commit
0d2f561106
|
|
@ -16,7 +16,7 @@ DoorItem::DoorItem(int id, Material *material, const wstring& doorType) : Item(
|
|||
{
|
||||
this->material = material;
|
||||
this->doorType = doorType;
|
||||
maxStackSize = 1;
|
||||
maxStackSize = 64;
|
||||
}
|
||||
|
||||
bool DoorItem::useOn(shared_ptr<ItemInstance> instance, shared_ptr<Player> player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly)
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ void DoorTile::neighborChanged(Level *level, int x, int y, int z, int type)
|
|||
level->removeTile(x, y, z);
|
||||
spawn = true;
|
||||
}
|
||||
if (!level->isSolidBlockingTile(x, y - 1, z))
|
||||
if (!level->isTopSolidBlocking(x, y - 1, z))
|
||||
{
|
||||
level->removeTile(x, y, z);
|
||||
spawn = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue