[BLIND] Try to fix ender portal frames.

This commit is contained in:
asofold 2014-02-02 23:51:53 +01:00
parent 4031cb55e8
commit 165af2ccaf

View File

@ -1599,6 +1599,15 @@ public class BlockProperties {
else if (id == Material.PISTON_EXTENSION.getId()){ else if (id == Material.PISTON_EXTENSION.getId()){
return 0.625; return 0.625;
} }
else if (id == Material.ENDER_PORTAL_FRAME.getId()) {
// TODO: Test
// TODO: Other concepts ...
if ((access.getData(x, y, z) & 0x04) != 0) {
return 1.0;
} else {
return bounds[4];
}
}
else if ((flags & F_GROUND_HEIGHT) != 0){ else if ((flags & F_GROUND_HEIGHT) != 0){
// All blocks that are not treated individually are ground all through. // All blocks that are not treated individually are ground all through.
// TODO: Experimental workaround. // TODO: Experimental workaround.
@ -1973,6 +1982,16 @@ public class BlockProperties {
bmaxY = 1.0; bmaxY = 1.0;
} }
} }
else if (id == Material.ENDER_PORTAL_FRAME.getId()) {
// TODO: Test
// TODO: Other concepts ...
bminY = 0;
if ((access.getData(x, y, z) & 0x04) != 0) {
bmaxY = 1.0;
} else {
bmaxY = bounds[4];
}
}
else{ else{
bminY = bounds[1]; // minY bminY = bounds[1]; // minY
bmaxY = bounds[4]; // maxY bmaxY = bounds[4]; // maxY