mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fixed incorrect lighting in some cases. Closes issue #349
This commit is contained in:
1 parent
c523592522
commit
3e484deafc
1 file changed
+7
-2
@@ -141,14 +141,14 @@
|
||||
{
|
||||
ItemStack var8 = this.createStackedBlock(par6);
|
||||
|
||||
@@ -1364,4 +1380,835 @@
|
||||
@@ -1364,4 +1380,840 @@
|
||||
canBlockGrass[0] = true;
|
||||
StatList.initBreakableStats();
|
||||
}
|
||||
+
|
||||
+ /* =================================================== FORGE START =====================================*/
|
||||
+ /**
|
||||
+ * Get a light value for this block, normal ranges are between 0 and 15
|
||||
+ * Get a light value for the block at the specified coordinates, normal ranges are between 0 and 15
|
||||
+ *
|
||||
+ * @param world The current world
|
||||
+ * @param x X Position
|
||||
@@ -158,6 +158,11 @@
|
||||
+ */
|
||||
+ public int getLightValue(IBlockAccess world, int x, int y, int z)
|
||||
+ {
|
||||
+ Block block = blocksList[world.getBlockId(x, y, z)];
|
||||
+ if (block != null && block != this)
|
||||
+ {
|
||||
+ return block.getLightValue(world, x, y, z);
|
||||
+ }
|
||||
+ return lightValue[blockID];
|
||||
+ }
|
||||
+
|
||||
|
||||
Reference in new issue
Block a user