Railcraft

Railcraft

34M Downloads

Railcraft 9.2.2.0 tunnel bore protection issue

djoveryde opened this issue ยท 15 comments

commented

I'm currently using cauldron-1.7.10-1.1207.01.187 with Railcraft_1.7.10-9.2.2.0.

My current issue is that i cannot figure out how to prevent the tunnel bore from breaking through worldguard/faction protected areas. It just keeps on going.
Any help?

commented

Could you provide an update on this?

commented

This issue can be resolve with something as easy as this:

http://pastie.org/10430521

Placed at line 717 of EntityTunelBore.java

commented

Cauldron has been taken on by someone who has kept it updated. However the issue still exists. Its now called KCauldron, and is presently running on the latest forge version.

commented

i think there are forge events, i know as of recently BC is respecting those protections

commented

Simply ban it. That's the best way to do.

commented

What forge Event is this suppose to fire?

commented

This is what BC uses to break blocks, you can find the events there: https://github.com/BuildCraft/BuildCraft/blob/6.5.x/common/buildcraft/core/lib/utils/BlockUtils.java

commented

You mean throwing a event with fakeplayer? Actually that does never help, You can extract the GameProfile information stored in the nbt of the cart and check whether the GameProfile's owner has access to the protected area (exceptions might be the cart is still working while the owner is offline)

commented

using the owner when possible would indeed be better but falling back to a fake player when the owner is offline should also be included then, otherwise things will break if the owner goes offline on a server and the bore continues working

commented

Keep in mind that blockdamage on the bukkit side doesn't carry a cause, wish it did. I wish it would fire the ownersName in the event, this would solve the issue almost immediately.

commented

If this are a (K)Cauldron based issue, try posting this in prototik's KCauldron repo (google it). Maybe they can fix it

commented

This isn't a Cauldron issue, this is Railcraft not firing events correctly.

commented

Many Forge Developers developed their mods without ever thinking it could be used in a server based environment, therefore permissions were never included in the design.

If Mod developers fire the events correctly this isn't an issue.

commented

As cauldron has been killed, any future investigation?

commented

I believe they are Forge events.