Skip to content

Commit

Permalink
Minor syntax updates
Browse files Browse the repository at this point in the history
Nothing major, just committing so I don't lose them.
  • Loading branch information
Khroki committed Jun 15, 2014
1 parent ff9f84f commit d64f701
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ def makePlantVertices(self, facingBlockIndices, blocks, blockMaterials, blockDat


class TorchBlockRenderer(BlockRenderer):
blocktypes = [50, 75, 76]
blocktypes = [pymclevel.materials.alphaMaterials.Torch.ID, pymclevel.materials.alphaMaterials.RedstoneTorchOff.ID, pymclevel.materials.alphaMaterials.RedstoneTorchOn.ID]
renderstate = ChunkCalculator.renderstateAlphaTest
torchOffsetsStraight = [
[ # FaceXIncreasing
Expand Down Expand Up @@ -1580,7 +1580,7 @@ def makeRailVertices(self, facingBlockIndices, blocks, blockMaterials, blockData


class LadderBlockRenderer(BlockRenderer):
blocktypes = [pymclevel.materials.alphaMaterials.Ladder.ID]
blocktypes = [pymclevel.materials.alphaMaterials.Ladder.ID,pymclevel.materials.alphaMaterials.Vines.ID]

ladderOffsets = numpy.array([
[(0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0)],
Expand Down Expand Up @@ -1623,11 +1623,11 @@ def ladderVertices(self, facingBlockIndices, blocks, blockMaterials, blockData,

makeVertices = ladderVertices


class SnowBlockRenderer(BlockRenderer):

snowID = 78

blocktypes = [snowID]
blocktypes = [pymclevel.materials.alphaMaterials.Snow.ID]

def makeSnowVertices(self, facingBlockIndices, blocks, blockMaterials, blockData, areaBlockLights, texMap):
snowIndices = self.getMaterialIndices(blockMaterials)
Expand Down Expand Up @@ -1667,7 +1667,7 @@ def makeSnowVertices(self, facingBlockIndices, blocks, blockMaterials, blockData


class RedstoneBlockRenderer(BlockRenderer):
blocktypes = [55]
blocktypes = [pymclevel.materials.alphaMaterials.RedstoneWire.ID]

def redstoneVertices(self, facingBlockIndices, blocks, blockMaterials, blockData, areaBlockLights, texMap):
blockIndices = self.getMaterialIndices(blockMaterials)
Expand Down

0 comments on commit d64f701

Please sign in to comment.