Railcraft

Railcraft

34M Downloads

Player not getting damage by electric track

tomelfring opened this issue ยท 2 comments

commented

If the player walks on an active electric track, it doesn't get any damage. Mobs do get damage.
After checking the sourcecode I think the issue is here:
https://github.com/CovertJaguar/Railcraft/blob/mc-1.10.2/src/main/java/mods/railcraft/common/blocks/tracks/behaivor/CollisionHandler.java#L53

Suggested fix:

else if (entity.attackEntityFrom(RailcraftDamageSource.TRACK_ELECTRIC, 2))
    graph.removeCharge(2000);

If I could compile it, I would love to submit a pull request, but i'm getting the same error as #990

commented

@thommy101 To set up you just need to run ./gradlew setupDecompWorkspace, and then import project into IDE. You do not need to build.

commented

@liach I was in a IDE with decomp workspace, but my IDE messed up the import and used a wrong one. Reimport of the project fixed it. Thanks