} else if (newMat == oldMat && oldMat instanceof RedstoneSource) {
prevPower = ((RedstoneSource) oldMat).getRedstonePowerStrength(initialState);
newPower = ((RedstoneSource) newMat).getRedstonePowerStrength(event.getSnapshot());
}
if (prevPower != -1) {
RedstoneChangeEvent redstoneEvent = new RedstoneChangeEvent(event.getBlock(), event.getCause(), prevPower, newPower);
plugin.getEngine().getEventManager().callEvent(redstoneEvent);
if (redstoneEvent.isCancelled()) {
event.setCancelled(true);
}
}
}