mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-24 22:14:32 +00:00
Re-added BlockFire's properties, apparently some people access this by reflection.
This commit is contained in:
1 parent
82c0731888
commit
336e28c6fe
4 files changed
+43
-34
No files matched your search
@@ -1,22 +1,26 @@
|
||||
--- ../src_base/minecraft_server/net/minecraft/src/BlockFire.java 0000-00-00 00:00:00.000000000 -0000
|
||||
+++ ../src_work/minecraft_server/net/minecraft/src/BlockFire.java 0000-00-00 00:00:00.000000000 -0000
|
||||
@@ -13,15 +13,9 @@
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
public class BlockFire extends Block
|
||||
{
|
||||
-
|
||||
|
||||
- private int chanceToEncourageFire[];
|
||||
- private int abilityToCatchFire[];
|
||||
-
|
||||
+ private int chanceToEncourageFire[];
|
||||
+ private int abilityToCatchFire[];
|
||||
+
|
||||
protected BlockFire(int i, int j)
|
||||
{
|
||||
super(i, j, Material.fire);
|
||||
- chanceToEncourageFire = new int[256];
|
||||
- abilityToCatchFire = new int[256];
|
||||
+ chanceToEncourageFire = Block.blockFireSpreadSpeed;
|
||||
+ abilityToCatchFire = Block.blockFlammability;
|
||||
setTickOnLoad(true);
|
||||
}
|
||||
|
||||
@@ -39,12 +33,6 @@
|
||||
@@ -39,12 +39,6 @@
|
||||
setBurnRate(Block.vine.blockID, 15, 100);
|
||||
}
|
||||
|
||||
@@ -29,7 +33,7 @@
|
||||
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
|
||||
{
|
||||
return null;
|
||||
@@ -77,11 +65,9 @@
|
||||
@@ -77,11 +71,9 @@
|
||||
|
||||
public void updateTick(World world, int i, int j, int k, Random random)
|
||||
{
|
||||
@@ -44,7 +48,7 @@
|
||||
if(!canPlaceBlockAt(world, i, j, k))
|
||||
{
|
||||
world.setBlockWithNotify(i, j, k, 0);
|
||||
@@ -99,23 +85,23 @@
|
||||
@@ -99,23 +91,23 @@
|
||||
world.scheduleBlockUpdate(i, j, k, blockID, tickRate());
|
||||
if(!flag && !func_268_g(world, i, j, k))
|
||||
{
|
||||
@@ -76,7 +80,7 @@
|
||||
for(int i1 = i - 1; i1 <= i + 1; i1++)
|
||||
{
|
||||
for(int j1 = k - 1; j1 <= k + 1; j1++)
|
||||
@@ -155,9 +141,14 @@
|
||||
@@ -155,9 +147,14 @@
|
||||
|
||||
}
|
||||
|
||||
@@ -93,7 +97,7 @@
|
||||
if(random.nextInt(l) < j1)
|
||||
{
|
||||
boolean flag = world.getBlockId(i, j, k) == Block.tnt.blockID;
|
||||
@@ -182,27 +173,27 @@
|
||||
@@ -182,27 +179,27 @@
|
||||
|
||||
private boolean func_268_g(World world, int i, int j, int k)
|
||||
{
|
||||
@@ -127,7 +131,7 @@
|
||||
}
|
||||
|
||||
private int getChanceOfNeighborsEncouragingFire(World world, int i, int j, int k)
|
||||
@@ -213,12 +204,12 @@
|
||||
@@ -213,12 +210,12 @@
|
||||
return 0;
|
||||
} else
|
||||
{
|
||||
@@ -146,7 +150,7 @@
|
||||
return l;
|
||||
}
|
||||
}
|
||||
@@ -228,14 +219,24 @@
|
||||
@@ -228,14 +225,24 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -178,7 +182,7 @@
|
||||
if(i1 > l)
|
||||
{
|
||||
return i1;
|
||||
@@ -247,12 +248,12 @@
|
||||
@@ -247,12 +254,12 @@
|
||||
|
||||
public boolean canPlaceBlockAt(World world, int i, int j, int k)
|
||||
{
|
||||
@@ -193,7 +197,7 @@
|
||||
{
|
||||
world.setBlockWithNotify(i, j, k, 0);
|
||||
return;
|
||||
@@ -268,7 +269,7 @@
|
||||
@@ -268,7 +275,7 @@
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user