mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Make vanilla powered rails receive power from mods' custom powered rail subclasses (#4573)
This commit is contained in:
1 parent
14a7d66024
commit
937b29e49d
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
--- ../src-base/minecraft/net/minecraft/block/BlockRailPowered.java
|
||||
+++ ../src-work/minecraft/net/minecraft/block/BlockRailPowered.java
|
||||
@@ -146,7 +146,7 @@
|
||||
{
|
||||
IBlockState iblockstate = p_176567_1_.func_180495_p(p_176567_2_);
|
||||
|
||||
- if (iblockstate.func_177230_c() != this)
|
||||
+ if (!(iblockstate.func_177230_c() instanceof BlockRailPowered))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Reference in new issue
Block a user