|
|
@@ -63,7 +63,9 @@ LightSourceItemType* LightSourceItemType::setColor(int color)
|
|
|
BasicLightSource::BasicLightSource(
|
|
|
int typeId, Framework::Vec3<int> pos, int dimensionId)
|
|
|
: Block(typeId, pos, dimensionId, false)
|
|
|
-{}
|
|
|
+{
|
|
|
+ transparent = true;
|
|
|
+}
|
|
|
|
|
|
void BasicLightSource::setLight(int light)
|
|
|
{
|
|
|
@@ -165,7 +167,7 @@ ItemType* BasicLightSourceBlockType::createItemType() const
|
|
|
getName(),
|
|
|
50,
|
|
|
getGroupNames()))
|
|
|
- ->setColor(0x00F69A54);
|
|
|
+ ->setColor(lightColor);
|
|
|
}
|
|
|
|
|
|
void BasicLightSourceBlockType::setItemTypeName(Framework::Text itemTypeName)
|
|
|
@@ -262,8 +264,7 @@ Framework::JSON::JSONObject* BasicLightSourceBlockTypeFactory::toJsonObject(
|
|
|
JSONObjectValidationBuilder* BasicLightSourceBlockTypeFactory::addToValidator(
|
|
|
JSONObjectValidationBuilder* builder) const
|
|
|
{
|
|
|
- return BlockTypeFactoryBase::addToValidator(
|
|
|
- builder
|
|
|
+ return BlockTypeFactoryBase::addToValidator(builder
|
|
|
->withRequiredAttribute("itemType",
|
|
|
Game::INSTANCE->zTypeRegistry()->getValidator<Framework::Text>(
|
|
|
ItemTypeNameFactory::TYPE_ID))
|