package net.glowstone.scheduler;

import net.glowstone.block.GlowBlock;
import net.glowstone.block.ItemTable;
import net.glowstone.block.blocktype.BlockType;

public class PulseTask extends GlowTask {
    public PulseTask(GlowBlock block) {
        super(null, () -> {
            ItemTable table = ItemTable.instance();
            BlockType type = table.getBlock(block.getType());
            type.receivePulse(block);
        }, true, 1, 1);
    }
}

@@ -376,16 +376,52 @@
 ype());%0A
+            if (type != null) %7B%0A    
         
@@ -450,16 +450,30 @@
 block);%0A
+            %7D%0A
         

Check if type is null before pulsing