Re-enable entity and block class registration

This commit is contained in:
zontreck 2024-12-25 02:30:33 -07:00
parent 03eb896e8f
commit 6f7360f11f
3 changed files with 4 additions and 3 deletions

View file

@ -1,8 +1,8 @@
using Vintagestory.API.Common;
public class DrawerTrim : BlockEntity
public class BlockEntityDrawerTrim : BlockEntity
{
public DrawerTrim()
public BlockEntityDrawerTrim()
{
Api.Logger.Notification("\n\n/!\\ New DrawerTrim block entity created /!\\\n\n");
}

View file

@ -33,7 +33,7 @@ namespace VintageStorage
{
// Trim
api.RegisterBlockEntityClass("DrawerTrim", typeof(DrawerTrim));
api.RegisterBlockEntityClass("BlockEntityDrawerTrim", typeof(BlockEntityDrawerTrim));
}
// Called on server and client

View file

@ -1,6 +1,7 @@
{
"code": "drawertrim",
"class": "BlockDrawerTrim",
"entityclass": "BlockEntityDrawerTrim",
"creativeinventory": {
"general": ["*"],
"construction": ["*"]