Fix Vanilla bug where nether portals would not work above 127

This commit is contained in:
LexManos 2012-06-21 04:06:44 -07:00
parent 2d434dd84f
commit 6547556280
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,29 @@
--- ../src_base/minecraft/net/minecraft/src/Teleporter.java 0000-00-00 00:00:00.000000000 -0000
+++ ../src_work/minecraft/net/minecraft/src/Teleporter.java 0000-00-00 00:00:00.000000000 -0000
@@ -70,7 +70,7 @@
{
double var15 = (double)var14 + 0.5D - par2Entity.posZ;
- for (int var17 = 127; var17 >= 0; --var17)
+ for (int var17 = par1World.getHeight() - 1; var17 >= 0; --var17) //BugFix
{
if (par1World.getBlockId(var11, var17, var14) == Block.portal.blockID)
{
@@ -170,7 +170,7 @@
var18 = (double)var17 + 0.5D - par2Entity.posZ;
label274:
- for (var20 = 127; var20 >= 0; --var20)
+ for (var20 = par1World.getHeight() - 1; var20 >= 0; --var20) //BugFix
{
if (par1World.isAirBlock(var14, var20, var17))
{
@@ -236,7 +236,7 @@
var18 = (double)var17 + 0.5D - par2Entity.posZ;
label222:
- for (var20 = 127; var20 >= 0; --var20)
+ for (var20 = par1World.getHeight() - 1; var20 >= 0; --var20) //BugFix
{
if (par1World.isAirBlock(var14, var20, var17))
{

View file

@ -0,0 +1,29 @@
--- ../src_base/minecraft_server/net/minecraft/src/Teleporter.java 0000-00-00 00:00:00.000000000 -0000
+++ ../src_work/minecraft_server/net/minecraft/src/Teleporter.java 0000-00-00 00:00:00.000000000 -0000
@@ -70,7 +70,7 @@
{
double var15 = (double)var14 + 0.5D - par2Entity.posZ;
- for (int var17 = 127; var17 >= 0; --var17)
+ for (int var17 = par1World.getHeight() - 1; var17 >= 0; --var17) //BugFix
{
if (par1World.getBlockId(var11, var17, var14) == Block.portal.blockID)
{
@@ -170,7 +170,7 @@
var18 = (double)var17 + 0.5D - par2Entity.posZ;
label274:
- for (var20 = 127; var20 >= 0; --var20)
+ for (var20 = par1World.getHeight() - 1; var20 >= 0; --var20) //BugFix
{
if (par1World.isAirBlock(var14, var20, var17))
{
@@ -236,7 +236,7 @@
var18 = (double)var17 + 0.5D - par2Entity.posZ;
label222:
- for (var20 = 127; var20 >= 0; --var20)
+ for (var20 = par1World.getHeight() - 1; var20 >= 0; --var20) //BugFix
{
if (par1World.isAirBlock(var14, var20, var17))
{