bergerkiller / TrainCarts

A plugin that links multiple carts together to form trains
http://forums.bukkit.org/threads/mech-traincarts-v1-1-link-minecarts-of-different-types-together-to-form-trains-1000.29491/
34 stars 19 forks source link

[Fix] Don't falsely identify signs as TC signs that dont contain a type #26

Closed ghost closed 10 years ago

ghost commented 10 years ago

The Issue: Signs that contain, for example, the word "wait" in the second line were erratically treated as TrainCarts sign and thus destroyed for not having a type. Since this has the potential to break other plugins (and also innocent signs which never aspired to have anything to do with any plugins), this PR changes the detection of the sign type to only yield a result if the Sign has a type different from NONE.

ghost commented 10 years ago

Any Feedback on this?