mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 15:33:18 +00:00
Convert Forge to use Official mappings. Mojang released their obfuscation mappings but we have not used them up until now due to wanting to get their license to be more explicitly permissive. It is clear that their intent is to allow us to use their names for developing mods like this. See the full wording, and our interpretation here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
58 lines
2.3 KiB
Diff
58 lines
2.3 KiB
Diff
--- a/net/minecraft/block/RailState.java
|
|
+++ b/net/minecraft/block/RailState.java
|
|
@@ -15,14 +_,16 @@
|
|
private BlockState field_196923_d;
|
|
private final boolean field_208513_e;
|
|
private final List<BlockPos> field_196924_e = Lists.newArrayList();
|
|
+ private final boolean canMakeSlopes;
|
|
|
|
public RailState(World p_i47755_1_, BlockPos p_i47755_2_, BlockState p_i47755_3_) {
|
|
this.field_196920_a = p_i47755_1_;
|
|
this.field_196921_b = p_i47755_2_;
|
|
this.field_196923_d = p_i47755_3_;
|
|
this.field_196922_c = (AbstractRailBlock)p_i47755_3_.func_177230_c();
|
|
- RailShape railshape = p_i47755_3_.func_177229_b(this.field_196922_c.func_176560_l());
|
|
- this.field_208513_e = this.field_196922_c.func_208490_b();
|
|
+ RailShape railshape = this.field_196922_c.getRailDirection(field_196923_d, p_i47755_1_, p_i47755_2_, null);
|
|
+ this.field_208513_e = !this.field_196922_c.isFlexibleRail(field_196923_d, p_i47755_1_, p_i47755_2_);
|
|
+ this.canMakeSlopes = this.field_196922_c.canMakeSlopes(field_196923_d, p_i47755_1_, p_i47755_2_);
|
|
this.func_208509_a(railshape);
|
|
}
|
|
|
|
@@ -178,7 +_,7 @@
|
|
}
|
|
}
|
|
|
|
- if (railshape == RailShape.NORTH_SOUTH) {
|
|
+ if (railshape == RailShape.NORTH_SOUTH && canMakeSlopes) {
|
|
if (AbstractRailBlock.func_208488_a(this.field_196920_a, blockpos.func_177984_a())) {
|
|
railshape = RailShape.ASCENDING_NORTH;
|
|
}
|
|
@@ -188,7 +_,7 @@
|
|
}
|
|
}
|
|
|
|
- if (railshape == RailShape.EAST_WEST) {
|
|
+ if (railshape == RailShape.EAST_WEST && canMakeSlopes) {
|
|
if (AbstractRailBlock.func_208488_a(this.field_196920_a, blockpos3.func_177984_a())) {
|
|
railshape = RailShape.ASCENDING_EAST;
|
|
}
|
|
@@ -304,7 +_,7 @@
|
|
}
|
|
}
|
|
|
|
- if (railshape == RailShape.NORTH_SOUTH) {
|
|
+ if (railshape == RailShape.NORTH_SOUTH && canMakeSlopes) {
|
|
if (AbstractRailBlock.func_208488_a(this.field_196920_a, blockpos.func_177984_a())) {
|
|
railshape = RailShape.ASCENDING_NORTH;
|
|
}
|
|
@@ -314,7 +_,7 @@
|
|
}
|
|
}
|
|
|
|
- if (railshape == RailShape.EAST_WEST) {
|
|
+ if (railshape == RailShape.EAST_WEST && canMakeSlopes) {
|
|
if (AbstractRailBlock.func_208488_a(this.field_196920_a, blockpos3.func_177984_a())) {
|
|
railshape = RailShape.ASCENDING_EAST;
|
|
}
|