BlackBeltPanda / Transport-Pipes

Buildcraft without mods! This is a fork of the original Transport-Pipes plugin featuring support for newer versions of Spigot, many bug fixes, performance improvements, and end-user enhancements.
https://www.spigotmc.org/resources/transport-pipes.20873/
MIT License
39 stars 10 forks source link

Compatibility with LWCEntityLocking #27

Closed Brokkonaut closed 2 years ago

Brokkonaut commented 2 years ago

Some LWC implementations allow entity locking and will return null on Protection.getBlock() (if it is a protection for an entity), so I suggest to check if it is null and ignore that protection in this case to avoid a NPE

See this bug report: https://github.com/Brokkonaut/LWCEntityLocking/issues/5#issuecomment-1146879064

ErythroCraft commented 2 years ago

From Yesterday. This will fix any other bugs by LWC.