fix transparency & add glass
This commit is contained in:
@ -20,6 +20,8 @@ const (
|
||||
|
||||
Water
|
||||
|
||||
Glass
|
||||
|
||||
Count
|
||||
)
|
||||
|
||||
@ -35,13 +37,15 @@ func init() {
|
||||
world.RegisterBlockBehaviour(7, world.BlockBehaviourStatic(world.BlockAppearance{Name: "bedrock"}))
|
||||
world.RegisterBlockBehaviour(8, world.BlockBehaviourStatic(world.BlockAppearance{Name: "sand"}))
|
||||
world.RegisterBlockBehaviour(9, world.BlockBehaviourStatic(world.BlockAppearance{Name: "log_oak", RenderType: world.ThreeTexture}))
|
||||
world.RegisterBlockBehaviour(10, world.BlockBehaviourStatic(world.BlockAppearance{Name: "leaves_oak"}))
|
||||
world.RegisterBlockBehaviour(10, world.BlockBehaviourStatic(world.BlockAppearance{Name: "leaves_oak", Transparent: true}))
|
||||
|
||||
world.RegisterBlockBehaviour(11, world.BlockBehaviourStatic(world.BlockAppearance{Name: "planks_oak"}))
|
||||
|
||||
world.RegisterBlockBehaviour(12, WaterBehaviour{})
|
||||
|
||||
if Count != 13 {
|
||||
world.RegisterBlockBehaviour(13, world.BlockBehaviourStatic(world.BlockAppearance{Name: "glass", Transparent: true}))
|
||||
|
||||
if Count != 14 {
|
||||
panic("world.DefaultBlocks: block count not correct (check for block numbering in default_blocks.go)")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user