added provision against NPE
This commit is contained in:
parent
1febf3c714
commit
8f75c80618
1 changed files with 2 additions and 4 deletions
|
@ -541,13 +541,11 @@ public class BlockGenericPipe extends BlockBuildCraft {
|
|||
}
|
||||
|
||||
public static void removePipe(Pipe pipe) {
|
||||
if (pipe == null) {
|
||||
if (!isValid(pipe)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isValid(pipe)) {
|
||||
pipe.onBlockRemoval();
|
||||
}
|
||||
pipe.onBlockRemoval();
|
||||
|
||||
World world = pipe.container.getWorldObj();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue